verify_packfile(): check as many object as possible in a pack
commit473935188cc9b0363b30553f23d816231a66cb44
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 7 Nov 2011 02:59:24 +0000 (7 09:59 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Nov 2011 04:31:28 +0000 (6 20:31 -0800)
tree3976b4db1243298c65cfb18785516b74612dcd87
parenta3ed7552d6c800b476a3bdfec5fa575295ea4bdf
verify_packfile(): check as many object as possible in a pack

verify_packfile() checks for whole pack integerity first, then each
object individually. Once we get past whole pack check, we can
identify all objects in the pack. If there's an error with one object,
we should continue to check the next objects to salvage as many
objects as possible instead of stopping the process.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-check.c