Skip to content

Commit

Permalink
grep: pass -I (ignore binary) down to external grep
Browse files Browse the repository at this point in the history
We forgot to pass this option to the external grep process.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Feb 2, 2009
1 parent c7cddc1 commit bc39564
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin-grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc39564

Please sign in to comment.