summaryrefslogtreecommitdiff
path: root/color.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-08-13 11:33:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-13 17:44:51 (GMT)
commit7188260d1c9f4564dceaf45343abd55c5d9c6ded (patch)
tree6e40e793ab6bef0e765018eb130811edf3174ee5 /color.h
parentfaa1df86dc033ce1e6136ed89ad55df1bd479099 (diff)
downloadgit-7188260d1c9f4564dceaf45343abd55c5d9c6ded.zip
git-7188260d1c9f4564dceaf45343abd55c5d9c6ded.tar.gz
git-7188260d1c9f4564dceaf45343abd55c5d9c6ded.tar.bz2
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>
Diffstat (limited to 'color.h')
-rw-r--r--color.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/color.h b/color.h
index 5b744e1..33e7863 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"