[PATCH v5 13/21] color: add the meta color GIT_COLOR_REVERSE
- From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Aug 10, 2018, 22:14 UTC
- Message-ID
- <1ad74f9396b216d853a3e96206692f9a137aef6a.1533939264.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.1.v5.git.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
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> --- color.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/color.h b/color.h index 5b744e1bc..33e786342 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"
-- gitgitgadget