summaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-08-18 15:20:35 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-23 15:12:07 -0700
commit1a1e5d4f47fd77dec1b7e7ef0867939a251252b6 (patch)
tree686d489255d76713b976930c851745b4c5e7422a /packfile.h
parentd6fe0036fd5e0cf7f51aa84381ebd321e898350a (diff)
downloadgit-1a1e5d4f47fd77dec1b7e7ef0867939a251252b6.tar.gz
pack: move find_pack_entry() and make it global
This function needs to be global as it is used by sha1_file.c and will be used by packfile.c. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.h')
-rw-r--r--packfile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/packfile.h b/packfile.h
index e4d25d40d1..a0a3c08ff2 100644
--- a/packfile.h
+++ b/packfile.h
@@ -118,4 +118,6 @@ extern int packed_object_info(struct packed_git *pack, off_t offset, struct obje
extern void mark_bad_packed_object(struct packed_git *p, const unsigned char *sha1);
extern const struct packed_git *has_packed_and_bad(const unsigned char *sha1);
+extern int find_pack_entry(const unsigned char *sha1, struct pack_entry *e);
+
#endif