X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-grep.c;h=ad7dc00cde4e8e08ef35b313525781c135357df3;hb=0f03ca946142bd656c1af9ff811cb9efbc8314da;hp=4205e5d38dea6dee2d815a7434f87eacd089e4a9;hpb=2b83ade9778552526abbe34ae03a57da52a7433d;p=git.git diff --git a/builtin-grep.c b/builtin-grep.c index 4205e5d38..ad7dc00cd 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -596,6 +596,10 @@ int cmd_grep(int argc, const char **argv, const char *prefix) GREP_CLOSE_PAREN); continue; } + if (!strcmp("--all-match", arg)) { + opt.all_match = 1; + continue; + } if (!strcmp("-e", arg)) { if (1 < argc) { append_grep_pattern(&opt, argv[1],