summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorMark Lodato <lodatom@gmail.com>2010-03-07 16:52:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-03-08 08:30:59 (GMT)
commit00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb (patch)
treef3f638046ed38c6e0ad5ebc6f48a8e7973fc9e9d /Documentation
parent55f638bdc6507b3a2ce03290741f592934afaee7 (diff)
downloadgit-00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb.zip
git-00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb.tar.gz
git-00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb.tar.bz2
grep: Colorize selected, context, and function lines
Colorize non-matching text of selected lines, context lines, and function name lines. The default for all three is no color, but they can be configured using color.grep.<slot>. The first two are similar to the corresponding options in GNU grep, except that GNU grep applies the color to the entire line, not just non-matching text. Signed-off-by: Mark Lodato <lodatom@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index d6e4a3e..88e1d49 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -688,12 +688,18 @@ color.grep.<slot>::
part of the line to use the specified color, and is one of
+
--
+`context`;;
+ non-matching text in context lines (when using `-A`, `-B`, or `-C`)
`filename`;;
filename prefix (when not using `-h`)
+`function`;;
+ function name lines (when using `-p`)
`linenumber`;;
line number prefix (when using `-n`)
`match`;;
matching text
+`selected`;;
+ non-matching text in selected lines
`separator`;;
separators between fields on a line (`:`, `-`, and `=`)
and between hunks (`--`)