summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ffa0a7a)
raw | patch | inline | side by side (parent: ffa0a7a)
author | Linus Torvalds <torvalds@osdl.org> | |
Tue, 16 May 2006 00:54:01 +0000 (17:54 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 16 May 2006 01:06:18 +0000 (18:06 -0700) |
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>
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>
builtin-grep.c | patch | blob | history |
diff --git a/builtin-grep.c b/builtin-grep.c
index 3d6e515f1f04f07de5d2237dee7cb62c6b66dd24..66111de5148c17a156fdbfbc0d92b0c93c2b2c34 100644 (file)
--- a/builtin-grep.c
+++ b/builtin-grep.c
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)