X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-grep.c;h=3f12ba382690699d96580c3ddb1a61c79520e694;hb=fd94836923708581ca3f9b5c42a6d600c2f631dc;hp=bebf15cd6f7d82b773f985ce238688b4759e3c37;hpb=664a3348b22bd5fe5d2d97b9985edeaf3a34cb71;p=git.git diff --git a/builtin-grep.c b/builtin-grep.c index bebf15cd6..3f12ba382 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -291,6 +291,8 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached) push_arg("-E"); if (opt->regflags & REG_ICASE) push_arg("-i"); + if (opt->binary == GREP_BINARY_NOMATCH) + push_arg("-I"); if (opt->word_regexp) push_arg("-w"); if (opt->name_only)