summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-10-31 19:49:37 +0100
committerJunio C Hamano <gitster@pobox.com>2014-10-31 19:49:47 +0100
commitbf1f639ea2cb54f5dee2f1fe3435d0072ede9abb (patch)
treeb507e0cf182b820ee5888e5e58a61130960aaa31 /Documentation
parentMerge git://ozlabs.org/~paulus/gitk (diff)
parentgrep: add color.grep.matchcontext and color.grep.matchselected (diff)
downloadgit-bf1f639ea2cb54f5dee2f1fe3435d0072ede9abb.tar.xz
git-bf1f639ea2cb54f5dee2f1fe3435d0072ede9abb.zip
Merge branch 'rs/grep-color-words'
Allow painting or not painting (partial) matches in context lines when showing "grep -C<num>" output in color. * rs/grep-color-words: grep: add color.grep.matchcontext and color.grep.matchselected
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 8212897cf1..7a3294d947 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -885,7 +885,11 @@ color.grep.<slot>::
`linenumber`;;
line number prefix (when using `-n`)
`match`;;
- matching text
+ matching text (same as setting `matchContext` and `matchSelected`)
+`matchContext`;;
+ matching text in context lines
+`matchSelected`;;
+ matching text in selected lines
`selected`;;
non-matching text in selected lines
`separator`;;