From: Linus Torvalds Date: Tue, 16 May 2006 00:54:01 +0000 (-0700) Subject: Fix silly typo in new builtin grep X-Git-Tag: v1.4.0-rc1~142^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f66475199cbf50d9da9db617a280aac3196b2250;p=git.git Fix silly typo in new builtin grep The "-F" flag apparently got mis-translated due to some over-eager copy-paste work into a duplicate "-H" when using the external grep. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano --- diff --git a/builtin-grep.c b/builtin-grep.c index 3d6e515f1..66111de51 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -455,7 +455,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached) push_arg("grep"); push_arg("-H"); if (opt->fixed) - push_arg("-H"); + push_arg("-F"); if (opt->linenum) push_arg("-n"); if (opt->regflags & REG_EXTENDED)