Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/ita-cleanup'
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index 760dc8eae90f0c28cc8b4c664472fdec20fe688d..06ab68223a13b35612e2cb283d778a9c904b5528 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-386,7
+386,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;