summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-04-16 16:31:56 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-17 00:43:31 (GMT)
commit54dab52ae8518da67e271b5b3a1f91af1fd5e314 (patch)
tree2f10fb0679ec67b846800ca0e5223a5800baf43a /cache.h
parenta3fbf4dfe1bf2386add261dc7c2809b652b5f9ae (diff)
downloadgit-54dab52ae8518da67e271b5b3a1f91af1fd5e314.zip
git-54dab52ae8518da67e271b5b3a1f91af1fd5e314.tar.gz
git-54dab52ae8518da67e271b5b3a1f91af1fd5e314.tar.bz2
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 5b67f4c..63399c7 100644
--- a/cache.h
+++ b/cache.h
@@ -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 */