]> git.ipfire.org Git - thirdparty/git.git/commit
blame: reserve mark column only if necessary
authorRené Scharfe <l.s.r@web.de>
Mon, 6 Jul 2026 08:38:25 +0000 (10:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jul 2026 14:34:48 +0000 (07:34 -0700)
commitc3df27f347dcefc14629c7afb178420762d45eef
tree8eba177ca3c56dcc2dce8dc0f525965fbbe0d499
parente9019fcafe0040228b8631c30f97ae1adb61bcdc
blame: reserve mark column only if necessary

git blame prepends commit hashes of boundary commits with "^", ignored
commits with "?" and unblamable commits with "*" and reserves one column
for them by extending the hash abbreviation, to avoid showing ambiguous
hashes.

This reserved column wastes precious screen space, which can be
especially irritating when using the option -b to blank out boundary
commit hashes and not ignoring any commits.  Reserve it only as needed,
i.e. if any of those cases are actually shown.

Pointed-out-by: Laszlo Ersek <laszlo.ersek@posteo.net>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-blame.adoc
builtin/blame.c
t/t8002-blame.sh