grep: pass -I (ignore binary) down to external grep
We forgot to pass this option to the external grep process. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
c7cddc1a2f
commit
bc395643b6
@ -289,6 +289,8 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
|
|||||||
push_arg("-E");
|
push_arg("-E");
|
||||||
if (opt->regflags & REG_ICASE)
|
if (opt->regflags & REG_ICASE)
|
||||||
push_arg("-i");
|
push_arg("-i");
|
||||||
|
if (opt->binary == GREP_BINARY_NOMATCH)
|
||||||
|
push_arg("-I");
|
||||||
if (opt->word_regexp)
|
if (opt->word_regexp)
|
||||||
push_arg("-w");
|
push_arg("-w");
|
||||||
if (opt->name_only)
|
if (opt->name_only)
|
||||||
|
Loading…
Reference in New Issue
Block a user