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 --- grep.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'grep.h') diff --git a/grep.h b/grep.h index 36919ee217..2c4bdaca82 100644 --- a/grep.h +++ b/grep.h @@ -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; -- cgit v1.3-5-g9baa