diff options
author | Mark Lodato <lodatom@gmail.com> | 2010-03-07 11:52:47 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-08 00:30:59 -0800 |
commit | 00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb (patch) | |
tree | f3f638046ed38c6e0ad5ebc6f48a8e7973fc9e9d /grep.h | |
parent | 55f638bdc6507b3a2ce03290741f592934afaee7 (diff) | |
download | git-00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb.tar.gz |
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 'grep.h')
-rw-r--r-- | grep.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -84,9 +84,12 @@ struct grep_opt { int color; int max_depth; int funcname; + char color_context[COLOR_MAXLEN]; char color_filename[COLOR_MAXLEN]; + char color_function[COLOR_MAXLEN]; char color_lineno[COLOR_MAXLEN]; char color_match[COLOR_MAXLEN]; + char color_selected[COLOR_MAXLEN]; char color_sep[COLOR_MAXLEN]; int regflags; unsigned pre_context; |