Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
push_refs_with_export: convert to struct object_id
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 3d56746a9be12e78c2b5262948bd411acf3230a2..27ce7b705e12ca0343a4a232788494e5dee518d5 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-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;