Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/nostat'
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 890bdaa6b8a22dad667807cc3d835ccd9fb8056a..804c08c2cf64b84dd259d0c9308818c9dfe59d6d 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-311,7
+311,7
@@
static int work_tree_matches(const char *name, const unsigned char *sha1)
ce = active_cache[pos];
if ((lstat(name, &st) < 0) ||
!S_ISREG(st.st_mode) || /* careful! */
- ce_match_stat(ce, &st) ||
+ ce_match_stat(ce, &st
, 0
) ||
memcmp(sha1, ce->sha1, 20))
return 0;
/* we return 1 only when we can stat, it is a regular file,