validate reused pack data with CRC when possible
commit91ecbeca48e675fef8141451edb2c86577f9d63c
authorNicolas Pitre <nico@cam.org>
Tue, 10 Apr 2007 04:15:41 +0000 (10 00:15 -0400)
committerJunio C Hamano <junkio@cox.net>
Tue, 10 Apr 2007 19:48:14 +0000 (10 12:48 -0700)
tree50c836214bf1c5340b05f96b654ea0936ce9bd24
parent4ba7d711539122c21bd44af06b6cab4fc4f65a74
validate reused pack data with CRC when possible

This replaces the inflate validation with a CRC validation when reusing
data from a pack which uses index version 2.  That makes repacking much
safer against corruptions, and it should be a bit faster too.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-objects.c