summaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2008-06-24 23:19:02 -0400
committerJunio C Hamano <gitster@pobox.com>2008-06-24 23:58:57 -0700
commitc41a4a9468b0c728e77ec5d97da7bfb63776ac3f (patch)
tree6f17dc7359d8edae4043aa06a50eb88cba8d4304 /pack.h
parent77d3ecee85dbf354d2059d7ef65d788d90db3efa (diff)
downloadgit-c41a4a9468b0c728e77ec5d97da7bfb63776ac3f.tar.gz
verify-pack: check packed object CRC when using index version 2
To do so, check_pack_crc() moved from builtin-pack-objects.c to pack-check.c where it is more logical to share. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack.h')
-rw-r--r--pack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.h b/pack.h
index 465071cd29..76e6aa2aad 100644
--- a/pack.h
+++ b/pack.h
@@ -56,7 +56,7 @@ struct pack_idx_entry {
};
extern char *write_idx_file(char *index_name, struct pack_idx_entry **objects, int nr_objects, unsigned char *sha1);
-
+extern int check_pack_crc(struct packed_git *p, struct pack_window **w_curs, off_t offset, off_t len, unsigned int nr);
extern int verify_pack(struct packed_git *);
extern void fixup_pack_header_footer(int, unsigned char *, const char *, uint32_t);
extern char *index_pack_lockfile(int fd);