Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint-1.6.0' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 3 Feb 2009 08:32:29 +0000
(
00:32
-0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 3 Feb 2009 08:32:29 +0000
(
00:32
-0800)
* maint-1.6.0:
grep: pass -I (ignore binary) down to external grep
builtin-grep.c
patch
|
blob
|
history
raw
(from parent 1:
6ac9229
)
diff --git
a/builtin-grep.c
b/builtin-grep.c
index bebf15cd6f7d82b773f985ce238688b4759e3c37..3f12ba382690699d96580c3ddb1a61c79520e694 100644
(file)
--- a/
builtin-grep.c
+++ b/
builtin-grep.c
@@
-291,6
+291,8
@@
static int external_grep(struct grep_opt *opt, const char **paths, int cached)
push_arg("-E");
if (opt->regflags & REG_ICASE)
push_arg("-i");
+ if (opt->binary == GREP_BINARY_NOMATCH)
+ push_arg("-I");
if (opt->word_regexp)
push_arg("-w");
if (opt->name_only)