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); }