diff options
author | Nicolas Pitre <nico@cam.org> | 2007-04-16 12:31:56 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-16 17:43:31 -0700 |
commit | 54dab52ae8518da67e271b5b3a1f91af1fd5e314 (patch) | |
tree | 2f10fb0679ec67b846800ca0e5223a5800baf43a /cache.h | |
parent | a3fbf4dfe1bf2386add261dc7c2809b652b5f9ae (diff) | |
download | git-54dab52ae8518da67e271b5b3a1f91af1fd5e314.tar.gz git-54dab52ae8518da67e271b5b3a1f91af1fd5e314.tar.xz |
add get_size_from_delta()
... which consists of existing code split out of packed_delta_info()
for other callers to use it as well.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -436,6 +436,7 @@ extern const unsigned char *nth_packed_object_sha1(const struct packed_git *, ui extern off_t find_pack_entry_one(const unsigned char *, struct packed_git *); extern void *unpack_entry(struct packed_git *, off_t, enum object_type *, unsigned long *); extern unsigned long unpack_object_header_gently(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 const char *packed_object_info_detail(struct packed_git *, off_t, unsigned long *, unsigned long *, unsigned int *, unsigned char *); /* Dumb servers support */ |