t4207: test coloring of grafted decorations
commit5797b13919f8073108e58ab5cea39f4e6bbfa1c9
authorDerrick Stolee <derrickstolee@github.com>
Fri, 5 Aug 2022 17:58:35 +0000 (5 17:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Aug 2022 21:13:11 +0000 (5 14:13 -0700)
treef1d00da4c624380abafc3d1e25e9fc2667aecd34
parentb004521aa6f935fecd1426cab2997f7f8b31dcab
t4207: test coloring of grafted decorations

The color.decorate.<slot> config option added the 'grafted' slot in
09c4ba410b0f (log-tree: allow to customize 'grafted' color, 2018-05-26)
but included no tests for this behavior. When modifying some logic
around decorations, this ref namespace was ignored and could have been
lost as a default namespace for 'git log' decorations by default.

Add two tests to t4207 that check that the replaced objects are
correctly decorated. Use "black" as the color since it is distinct from
the other colors already in the test. The first test uses regular
replace-objects while the second creates a commit graft.

Be sure to test both modes with GIT_REPLACE_REF_BASE unset and set to an
alternative base.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4207-log-decoration-colors.sh