pack-objects: protect against disappearing packs
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 607c2ea612889c46e81ae375b6985db18e529a8e..a723670c870346db19a636612cc460f323234eae 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1014,6 +1014,7 @@ 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 int is_pack_valid(struct packed_git *);
 extern void *unpack_entry(struct packed_git *, off_t, enum object_type *, unsigned long *);
 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);