Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Commit first cut at "git-fetch-pack"
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index b18e467d8c93843882c892f8810904a9fcd20b01..8f20e2f82182a2ab25d7f07a13ac038faececcbc 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-1267,6
+1267,12
@@
int write_sha1_from_fd(const unsigned char *sha1, int fd)
return 0;
}
+int has_sha1_pack(const unsigned char *sha1)
+{
+ struct pack_entry e;
+ return find_pack_entry(sha1, &e);
+}
+
int has_sha1_file(const unsigned char *sha1)
{
struct stat st;