aboutsummaryrefslogtreecommitdiff
path: root/Documentation/config.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-11-20 10:25:39 -0500
committerJunio C Hamano <gitster@pobox.com>2014-11-20 12:42:49 -0800
commit17a4be26060b00a867cbe54ee906fe03813470ec (patch)
tree79257f8f0b06bd68a3a2783d9e44562dc2b96119 /Documentation/config.txt
parent695d95df19b74485be62aba0f978044ff1215ea0 (diff)
downloadgit-17a4be26060b00a867cbe54ee906fe03813470ec.tar.gz
git-17a4be26060b00a867cbe54ee906fe03813470ec.tar.xz
parse_color: support 24-bit RGB values
Some terminals (like XTerm) allow full 24-bit RGB color specifications using an extension to the regular ANSI color scheme. Let's allow users to specify hex RGB colors, enabling the all-important feature of hot pink ref decorations: git log --format="%h%C(#ff69b4)%d%C(reset) %s" Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r--Documentation/config.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 9678ab6aa..35b9731d4 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -828,7 +828,8 @@ doesn't matter.
+
Colors (foreground and background) may also be given as numbers between
0 and 255; these use ANSI 256-color mode (but note that not all
-terminals may support this).
+terminals may support this). If your terminal supports it, you may also
+specify 24-bit RGB values as hex, like `#ff0ab3`.
color.diff::
Whether to use ANSI escape sequences to add color to patches.