Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: Colorize filename, line number, and separator
[gitweb.git]
/
grep.h
diff --git
a/grep.h
b/grep.h
index 970308799664fe6a3871c0b8364c13e43cf96e1f..36919ee2175849c8dce1739e72f3e477812a53bc 100644
(file)
--- a/
grep.h
+++ b/
grep.h
@@
-84,7
+84,10
@@
struct grep_opt {
int color;
int max_depth;
int funcname;
+ char color_filename[COLOR_MAXLEN];
+ char color_lineno[COLOR_MAXLEN];
char color_match[COLOR_MAXLEN];
+ char color_sep[COLOR_MAXLEN];
int regflags;
unsigned pre_context;
unsigned post_context;