]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache.h
optimize verify-pack a bit
[thirdparty/git.git] / cache.h
diff --git a/cache.h b/cache.h
index a9c14da7a21eb7286e3af20a0aa6fee6c45cc99d..c8954ef15f28e83e4029481b1cb3cd793f7f3d58 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -712,6 +712,7 @@ extern void close_pack_windows(struct packed_git *);
 extern void unuse_pack(struct pack_window **);
 extern struct packed_git *add_packed_git(const char *, int, int);
 extern const unsigned char *nth_packed_object_sha1(struct packed_git *, uint32_t);
+extern off_t nth_packed_object_offset(const struct packed_git *, uint32_t);
 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);