From: Johannes Schindelin Date: Mon, 13 Aug 2018 11:33:19 +0000 (-0700) Subject: color: add the meta color GIT_COLOR_REVERSE X-Git-Tag: v2.19.0-rc0~15^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7188260d1c9f4564dceaf45343abd55c5d9c6ded;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/color.h b/color.h index 5b744e1bc6..33e786342a 100644 --- a/color.h +++ b/color.h @@ -44,6 +44,7 @@ struct strbuf; #define GIT_COLOR_BG_CYAN "\033[46m" #define GIT_COLOR_FAINT "\033[2m" #define GIT_COLOR_FAINT_ITALIC "\033[2;3m" +#define GIT_COLOR_REVERSE "\033[7m" /* A special value meaning "no color selected" */ #define GIT_COLOR_NIL "NIL"