Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
docs: explain diff.*.binary option
[gitweb.git]
/
builtin-grep.c
diff --git
a/builtin-grep.c
b/builtin-grep.c
index 26979577d3f753cdc8b3358954249708d4cb53ef..371db0aa9e6572c5b25ea679a510bc8784a25759 100644
(file)
--- a/
builtin-grep.c
+++ b/
builtin-grep.c
@@
-844,6
+844,7
@@
int cmd_grep(int argc, const char **argv, const char *prefix)
opt.relative = 1;
opt.pathname = 1;
opt.pattern_tail = &opt.pattern_list;
+ opt.header_tail = &opt.header_list;
opt.regflags = REG_NEWLINE;
opt.max_depth = -1;