]> git.99rst.org Git - git.git/commit
diff-highlight: test color config
authorJeff King <redacted>
Mon, 23 Mar 2026 06:02:13 +0000 (02:02 -0400)
committerJunio C Hamano <redacted>
Mon, 23 Mar 2026 14:42:27 +0000 (07:42 -0700)
commitc6bc53ad95d5a7dda3d3a8b1bc984465c9024342
tree17aa24bd8ee2d7ea05a6927425153f9228ec6560
parente57daf91ed0bde19595543c68c90948d5c47ebc6
diff-highlight: test color config

We added configurable colors long ago in bca45fbc1f (diff-highlight:
allow configurable colors, 2014-11-20), but never actually tested it.
Since we'll be touching the color code in a moment, this is a good time
to beef up the tests.

Note that we cover both the highlight/reset style used by the default
colors, as well as the normal/highlight style added by that commit
(which was previously totally untested).

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/diff-highlight/t/t9400-diff-highlight.sh
git clone https://git.99rst.org/PROJECT