From: Robert Fitzsimons Date: Tue, 6 Jun 2006 23:15:16 +0000 (+0000) Subject: builtin-grep: pass ignore case option to external grep X-Git-Tag: v1.4.0-rc2~18 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3026402cbc60c003c4bc043368afc619e4d9b3cd;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-grep.c b/builtin-grep.c index acc4eea36..5fac5701e 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -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)