"log --author=me --grep=it" should find intersection, not union
[gitweb.git] / builtin-grep.c
index 529461fb8fdf6bdbee86b8cc46fa610696cb9382..d57c4d9bed1b3c4f64bbafa8cf0a8d9bb0040bb5 100644 (file)
@@ -820,6 +820,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;