]> git.ipfire.org Git - thirdparty/git.git/commit
decorate: use commit color for HEAD arrow
authorAndy Koppe <andy.koppe@gmail.com>
Sun, 20 Aug 2023 18:50:09 +0000 (19:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Aug 2023 18:40:10 +0000 (11:40 -0700)
commit1e63b34a449afd650b02ab19501e8ccf0c15816e
tree212a9ed1fd9ebbea74a37da459cbde64d7417ec1
parentf1f8a258567268974b9bbd012c33ad219a31aa0e
decorate: use commit color for HEAD arrow

Use the commit color instead of the HEAD color for the arrow or custom
symbol in "HEAD -> branch" decorations, for visual consistency with the
prefix, separator and suffix symbols, which are also colored with the
commit color.

This change was triggered by the possibility that one could choose to
use the same symbol for the pointer and the separator options in
%(decorate), in which case they ought to be the same color.

A related precedent is 'ls -l', where the arrow for symlinks gets the
default color rather than that of the symlink name.

Amend test t4207-log-decoration-colors.sh accordingly.

Signed-off-by: Andy Koppe <andy.koppe@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c
t/t4207-log-decoration-colors.sh