From 00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb Mon Sep 17 00:00:00 2001 From: Mark Lodato Date: Sun, 7 Mar 2010 11:52:47 -0500 Subject: 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.. 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 Signed-off-by: Junio C Hamano --- Documentation/config.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Documentation') 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.:: 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 (`--`) -- cgit v1.2.3