summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Mark Lodato <lodatom@gmail.com>2010-03-07 11:52:47 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-08 00:30:59 -0800
commit00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb (patch)
treef3f638046ed38c6e0ad5ebc6f48a8e7973fc9e9d /Documentation
parentgrep: Colorize filename, line number, and separator (diff)
downloadtgif-00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb.tar.xz
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 d6e4a3e0cc..88e1d49d6e 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 (`--`)