aboutsummaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-28 11:45:56 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-28 12:00:00 -0800
commitedaec3fbe8821a5761e35e9b01937eea9b2544c1 (patch)
tree181b9bae79e0d63fdac6c92b471653adc8b5e2c9 /read-cache.c
parent597388f6a1c18a117904c307c20542d8a79a1fcd (diff)
downloadgit-edaec3fbe8821a5761e35e9b01937eea9b2544c1.tar.gz
git-edaec3fbe8821a5761e35e9b01937eea9b2544c1.tar.xz
index_fd(): use enum object_type instead of type name string.
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 d63746476..6bfd41165 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, NULL))
+ if (!index_fd(sha1, fd, st, 0, OBJ_BLOB))
match = hashcmp(sha1, ce->sha1);
/* index_fd() closed the file descriptor already */
}