Page MenuHomePhabricator

D19392.id46386.diff
No OneTemporary

D19392.id46386.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
Tue, Mar 25, 4:04 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7716891
Default Alt Text
D19392.id46386.diff (735 B)

Event Timeline