From: Junio C Hamano Date: Mon, 2 Feb 2009 18:58:20 +0000 (-0800) Subject: grep: pass -I (ignore binary) down to external grep X-Git-Tag: v1.6.1.3~1^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bc395643b606ffe7a5c01e2772ae0644c840f368;p=git.git 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 --- diff --git a/builtin-grep.c b/builtin-grep.c index 3a51662a3..d3cc75e3a 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -289,6 +289,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)