summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorDerrick Stolee <derrickstolee@github.com>2022-08-05 17:58:35 +0000
committerJunio C Hamano <gitster@pobox.com>2022-08-05 14:13:11 -0700
commit5797b13919f8073108e58ab5cea39f4e6bbfa1c9 (patch)
treef1d00da4c624380abafc3d1e25e9fc2667aecd34 /refs.h
parentb004521aa6f935fecd1426cab2997f7f8b31dcab (diff)
downloadgit-5797b13919f8073108e58ab5cea39f4e6bbfa1c9.tar.gz
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>
Diffstat (limited to 'refs.h')
0 files changed, 0 insertions, 0 deletions