diff --git a/src/applications/diffusion/query/blame/DiffusionGitBlameQuery.php b/src/applications/diffusion/query/blame/DiffusionGitBlameQuery.php index f98cc645a7..0eb15cd018 100644 --- a/src/applications/diffusion/query/blame/DiffusionGitBlameQuery.php +++ b/src/applications/diffusion/query/blame/DiffusionGitBlameQuery.php @@ -7,8 +7,12 @@ final class DiffusionGitBlameQuery extends DiffusionBlameQuery { $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); }