author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Mon, 7 Nov 2011 02:59:24 +0000 (09:59 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Nov 2011 04:31:28 +0000 (20:31 -0800) | ||
commit | 473935188cc9b0363b30553f23d816231a66cb44 | |
tree | 3976b4db1243298c65cfb18785516b74612dcd87 | tree | snapshot |
parent | a3ed7552d6c800b476a3bdfec5fa575295ea4bdf | commit | diff |
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>
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 | diff | blob | history |