summaryrefslogtreecommitdiff
path: root/builtin-grep.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2006-05-15 17:54:01 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-15 18:06:18 -0700
commitf66475199cbf50d9da9db617a280aac3196b2250 (patch)
tree9f9b69a2c9b5809a0c79add371a8b4e804bcbd09 /builtin-grep.c
parentffa0a7ab36c1e8a528e4cc0ff451f5fea68658a8 (diff)
downloadgit-f66475199cbf50d9da9db617a280aac3196b2250.tar.gz
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>
Diffstat (limited to 'builtin-grep.c')
-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)