Skip to content

Commit 4844e5e

Browse files
committed
color: add the meta color GIT_COLOR_REVERSE
This "color" simply reverts background and foreground. It will be used in the upcoming "dual color" mode of `git range-diff`, where we will reverse colors for the -/+ markers and the fragment headers of the "outer" diff. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ab6e271 commit 4844e5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

color.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ struct strbuf;
4444
#define GIT_COLOR_BG_CYAN "\033[46m"
4545
#define GIT_COLOR_FAINT "\033[2m"
4646
#define GIT_COLOR_FAINT_ITALIC "\033[2;3m"
47+
#define GIT_COLOR_REVERSE "\033[7m"
4748

4849
/* A special value meaning "no color selected" */
4950
#define GIT_COLOR_NIL "NIL"

0 commit comments

Comments
 (0)