summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2015-11-10 02:22:19 (GMT)
committerJeff King <peff@peff.net>2015-11-20 13:02:05 (GMT)
commitb419aa25d5622268f515b26e76420eb2dd89e7e6 (patch)
treed508c65143f4a0680786a57c68fc5f12dfbb9935 /cache.h
parent0c83680e9c047170614fb08ef222ea4f460e514d (diff)
downloadgit-b419aa25d5622268f515b26e76420eb2dd89e7e6.zip
git-b419aa25d5622268f515b26e76420eb2dd89e7e6.tar.gz
git-b419aa25d5622268f515b26e76420eb2dd89e7e6.tar.bz2
sha1_file: introduce has_object_file helper.
Add has_object_file, which is a wrapper around has_sha1_file, but for struct object_id. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 736abc0..614040e 100644
--- a/cache.h
+++ b/cache.h
@@ -1030,6 +1030,9 @@ static inline int has_sha1_file(const unsigned char *sha1)
return has_sha1_file_with_flags(sha1, 0);
}
+/* Same as the above, except for struct object_id. */
+extern int has_object_file(const struct object_id *oid);
+
/*
* Return true iff an alternate object database has a loose object
* with the specified name. This function does not respect replace