X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-grep.c;h=f4f4ecb11b587c74a009c94cb7b230e7c93590e4;hb=34110cd4;hp=9180b39e3f22e5d3805649c655c61aafc7861968;hpb=987e315a6b5a5dd224602f09b9dc7c0fe9c7d024;p=git.git diff --git a/builtin-grep.c b/builtin-grep.c index 9180b39e3..f4f4ecb11 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -578,6 +578,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix) continue; } if (!strcmp("-l", arg) || + !strcmp("--name-only", arg) || !strcmp("--files-with-matches", arg)) { opt.name_only = 1; continue;