summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-21 16:04:33 -0700
committerJunio C Hamano <gitster@pobox.com>2011-10-21 16:04:33 -0700
commit207095063379065f2894c091c8909269a00ed44a (patch)
tree0e117b5b75a459622282fd65510b54978a2d2458 /cache.h
parente75a59adfcc4fd048690e5b25f9a8c31d8011d53 (diff)
parent58a6a9cc4397477a7d8b620165e651028cc0e3c9 (diff)
downloadgit-207095063379065f2894c091c8909269a00ed44a.tar.gz
Merge branch 'jk/maint-pack-objects-compete-with-delete'
* jk/maint-pack-objects-compete-with-delete: downgrade "packfile cannot be accessed" errors to warnings pack-objects: protect against disappearing packs
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 42884ec62c..2e6ad3604e 100644
--- a/cache.h
+++ b/cache.h
@@ -1057,6 +1057,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);