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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Aug 13, 2018 at 04:33 UTC 7188260d1c9f4564dceaf45343abd55c5d9c6ded
1 file changed +1
color.h
+1
@@ -44,6 +44,7 @@ struct strbuf;
44 #define GIT_COLOR_BG_CYAN "\033[46m"
45 #define GIT_COLOR_FAINT "\033[2m"
46 #define GIT_COLOR_FAINT_ITALIC "\033[2;3m"
47 +#define GIT_COLOR_REVERSE "\033[7m"
48
49 /* A special value meaning "no color selected" */
50 #define GIT_COLOR_NIL "NIL"