Browse Source

builtin-grep: pass ignore case option to external grep

Don't just read the --ignore-case/-i option, pass the flag on to the
external grep program.

Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Robert Fitzsimons 19 years ago committed by Junio C Hamano
parent
commit
3026402cbc
  1. 2
      builtin-grep.c

2
builtin-grep.c

@ -459,6 +459,8 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached) @@ -459,6 +459,8 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
push_arg("-n");
if (opt->regflags & REG_EXTENDED)
push_arg("-E");
if (opt->regflags & REG_ICASE)
push_arg("-i");
if (opt->word_regexp)
push_arg("-w");
if (opt->name_only)

Loading…
Cancel
Save