Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-08-19 01:20:35 +0300
committerJunio C Hamano <gitster@pobox.com>2017-08-24 01:12:07 +0300
commit1a1e5d4f47fd77dec1b7e7ef0867939a251252b6 (patch)
tree686d489255d76713b976930c851745b4c5e7422a /packfile.h
parentd6fe0036fd5e0cf7f51aa84381ebd321e898350a (diff)
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