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>
Robert Fitzsimons committed
Jun 6, 2006 at 23:15 UTC
3026402cbc60c003c4bc043368afc619e4d9b3cd
1 file changed
+2
builtin-grep.c
+2
@@ -459,6 +459,8 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
459
push_arg("-n");
460
if (opt->regflags & REG_EXTENDED)
461
push_arg("-E");
462
+ if (opt->regflags & REG_ICASE)
463
+ push_arg("-i");
464
if (opt->word_regexp)
465
push_arg("-w");
466
if (opt->name_only)