Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: make it clear i-t-a entries are ignored
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index d04f4400d9db8ef9f0b0dde0c8be46a11bd0e2f7..f50817974070c414cc7c368df5bd78361a8f522d 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-375,7
+375,7
@@
static int grep_cache(struct grep_opt *opt, const struct pathspec *pathspec, int
for (nr = 0; nr < active_nr; nr++) {
const struct cache_entry *ce = active_cache[nr];
- if (!S_ISREG(ce->ce_mode))
+ if (!S_ISREG(ce->ce_mode)
|| ce_intent_to_add(ce)
)
continue;
if (!ce_path_match(ce, pathspec, NULL))
continue;