summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd8239f)
raw | patch | inline | side by side (parent: dd8239f)
author | Robert Fitzsimons <robfitz@273k.net> | |
Tue, 6 Jun 2006 23:15:16 +0000 (23:15 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 6 Jun 2006 23:22:45 +0000 (16:22 -0700) |
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>
external grep program.
Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-grep.c | patch | blob | history |
diff --git a/builtin-grep.c b/builtin-grep.c
index acc4eea36397754d317e131f999b7b77dad31e36..5fac5701e6ccebdbe83b00d2e2df19343d3aea0e 100644 (file)
--- a/builtin-grep.c
+++ b/builtin-grep.c
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)