aboutsummaryrefslogtreecommitdiff
path: root/Documentation/config.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-17 18:58:02 -0700
committerJunio C Hamano <gitster@pobox.com>2009-03-17 18:58:02 -0700
commitb332368de87fba4fd9e6f8c163240f14ca00a9ea (patch)
tree697bfc0820966aae7130f64cbac89195cc90d6e1 /Documentation/config.txt
parentca8a36e6e0cf6ee952df16160bc853630c56b997 (diff)
parent6e89ec0f1e716c11bf7fa214b4c7b975ea77c736 (diff)
downloadgit-b332368de87fba4fd9e6f8c163240f14ca00a9ea.tar.gz
git-b332368de87fba4fd9e6f8c163240f14ca00a9ea.tar.xz
Merge branch 'rs/color-grep'
* rs/color-grep: grep: prefer builtin over external one when coloring results grep: cast printf %.*s "precision" argument explicitly to int grep: add support for coloring with external greps grep: color patterns in output grep: add pmatch and eflags arguments to match_one_pattern() grep: remove grep_opt argument from match_expr_eval() grep: micro-optimize hit collection for AND nodes
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r--Documentation/config.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 44916b9e7..12540b605 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -553,6 +553,25 @@ color.diff.<slot>::
whitespace errors). The values of these variables may be specified as
in color.branch.<slot>.
+color.grep::
+ When set to `always`, always highlight matches. When `false` (or
+ `never`), never. When set to `true` or `auto`, use color only
+ when the output is written to the terminal. Defaults to `false`.
+
+color.grep.external::
+ The string value of this variable is passed to an external 'grep'
+ command as a command line option if match highlighting is turned
+ on. If set to an empty string, no option is passed at all,
+ turning off coloring for external 'grep' calls; this is the default.
+ For GNU grep, set it to `--color=always` to highlight matches even
+ when a pager is used.
+
+color.grep.match::
+ Use customized color for matches. The value of this variable
+ may be specified as in color.branch.<slot>. It is passed using
+ the environment variables 'GREP_COLOR' and 'GREP_COLORS' when
+ calling an external 'grep'.
+
color.interactive::
When set to `always`, always use colors for interactive prompts
and displays (such as those used by "git-add --interactive").