summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-13 22:33:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-21 01:38:54 (GMT)
commitf8c8abc5b76ffd763b9c7c5e4fb054358e82ca28 (patch)
tree1c2cb22da01f358bf7f3f41311feefff3fdce883 /cache.h
parent5266d369b21f8c260fa60d94fb29c3998c521e4a (diff)
downloadgit-f8c8abc5b76ffd763b9c7c5e4fb054358e82ca28.zip
git-f8c8abc5b76ffd763b9c7c5e4fb054358e82ca28.tar.gz
git-f8c8abc5b76ffd763b9c7c5e4fb054358e82ca28.tar.bz2
unpack_object_header(): make it public
This function is used to read and skip over the per-object header in a packfile. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 3a1af9d..7650d2e 100644
--- a/cache.h
+++ b/cache.h
@@ -1021,6 +1021,7 @@ extern void *unpack_entry(struct packed_git *, off_t, enum object_type *, unsign
extern unsigned long unpack_object_header_buffer(const unsigned char *buf, unsigned long len, enum object_type *type, unsigned long *sizep);
extern unsigned long get_size_from_delta(struct packed_git *, struct pack_window **, off_t);
extern int packed_object_info_detail(struct packed_git *, off_t, unsigned long *, unsigned long *, unsigned int *, unsigned char *);
+extern int unpack_object_header(struct packed_git *, struct pack_window **, off_t *, unsigned long *);
struct object_info {
/* Request */