Merge branch 'master' of git://github.com/git-l10n/git-po
[gitweb.git] / sha1_file.c
index 3d56746a9be12e78c2b5262948bd411acf3230a2..27ce7b705e12ca0343a4a232788494e5dee518d5 100644 (file)
@@ -3216,6 +3216,11 @@ int has_sha1_file_with_flags(const unsigned char *sha1, int flags)
        return find_pack_entry(sha1, &e);
 }
 
+int has_object_file(const struct object_id *oid)
+{
+       return has_sha1_file(oid->hash);
+}
+
 static void check_tree(const void *buf, size_t size)
 {
        struct tree_desc desc;