summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-28 19:52:04 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-02-28 20:00:00 (GMT)
commit53bca91a7d337ea648197b9642b41a92704c17f7 (patch)
tree28c8d3d7d20fbfb87ed85ca0d0b3804f6e8c43d9 /read-cache.c
parentedaec3fbe8821a5761e35e9b01937eea9b2544c1 (diff)
downloadgit-53bca91a7d337ea648197b9642b41a92704c17f7.zip
git-53bca91a7d337ea648197b9642b41a92704c17f7.tar.gz
git-53bca91a7d337ea648197b9642b41a92704c17f7.tar.bz2
index_fd(): pass optional path parameter as hint for blob conversion
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 6bfd411..7a104e3 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -59,7 +59,7 @@ static int ce_compare_data(struct cache_entry *ce, struct stat *st)
if (fd >= 0) {
unsigned char sha1[20];
- if (!index_fd(sha1, fd, st, 0, OBJ_BLOB))
+ if (!index_fd(sha1, fd, st, 0, OBJ_BLOB, ce->name))
match = hashcmp(sha1, ce->sha1);
/* index_fd() closed the file descriptor already */
}