summaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-09-13 15:02:18 +0200
committerJunio C Hamano <gitster@pobox.com>2019-09-13 14:40:33 -0700
commit56d9cbe68b0746640d22b7c05468d76df92debf3 (patch)
treeb2f4965f0cc5ad9400cf2f6d8217b740df3ca9a6 /packfile.h
parentbab28d9f97088f58863665f608020f64dffec9ee (diff)
downloadgit-56d9cbe68b0746640d22b7c05468d76df92debf3.tar.gz
packfile: expose get_delta_base()
In a following commit get_delta_base() will be used outside packfile.c, so let's make it non static and declare it in packfile.h. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.h')
-rw-r--r--packfile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/packfile.h b/packfile.h
index 3e98910bdd..8049202f4c 100644
--- a/packfile.h
+++ b/packfile.h
@@ -151,6 +151,9 @@ void *unpack_entry(struct repository *r, struct packed_git *, off_t, enum object
unsigned long unpack_object_header_buffer(const unsigned char *buf, unsigned long len, enum object_type *type, unsigned long *sizep);
unsigned long get_size_from_delta(struct packed_git *, struct pack_window **, off_t);
int unpack_object_header(struct packed_git *, struct pack_window **, off_t *, unsigned long *);
+off_t get_delta_base(struct packed_git *p, struct pack_window **w_curs,
+ off_t *curpos, enum object_type type,
+ off_t delta_obj_offset);
void release_pack_memory(size_t);