Page MenuHomePhabricator

D19392.diff
No OneTemporary

D19392.diff

diff --git a/src/applications/diffusion/query/blame/DiffusionGitBlameQuery.php b/src/applications/diffusion/query/blame/DiffusionGitBlameQuery.php
--- a/src/applications/diffusion/query/blame/DiffusionGitBlameQuery.php
+++ b/src/applications/diffusion/query/blame/DiffusionGitBlameQuery.php
@@ -7,8 +7,12 @@
$commit = $request->getCommit();
+ // NOTE: The "--root" flag suppresses the addition of the "^" boundary
+ // commit marker. Without it, root commits render with a "^" before them,
+ // and one fewer character of the commit hash.
+
return $repository->getLocalCommandFuture(
- '--no-pager blame -s -l %s -- %s',
+ '--no-pager blame --root -s -l %s -- %s',
$commit,
$path);
}

File Metadata

Mime Type
text/plain
Expires
May 13 2024, 11:35 PM (5 w, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6293992
Default Alt Text
D19392.diff (735 B)

Event Timeline