summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@osdl.org>2006-05-15 17:54:01 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-15 18:06:18 -0700
commitf66475199cbf50d9da9db617a280aac3196b2250 (patch)
tree9f9b69a2c9b5809a0c79add371a8b4e804bcbd09
parentbuiltin-grep: unparse more command line options. (diff)
downloadtgif-f66475199cbf50d9da9db617a280aac3196b2250.tar.xz
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 <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--builtin-grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-grep.c b/builtin-grep.c
index 3d6e515f1f..66111de514 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)