author | Nicolas Pitre <nico@cam.org> | |
Wed, 29 Oct 2008 23:02:46 +0000 (19:02 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 2 Nov 2008 23:22:34 +0000 (15:22 -0800) | ||
commit | 09ded04b7e1f0096bb2fe356b2f5a298296151dd | |
tree | 13edd1bc4fa767aa81bdfd71bb6de235e48ed3f5 | tree | snapshot |
parent | d8f325563d85abcd9816311b3a84093b2d1cda9f | commit | diff |
make unpack_object_header() non fatal
It is possible to have pack corruption in the object header. Currently
unpack_object_header() simply die() on them instead of letting the caller
deal with that gracefully.
So let's have unpack_object_header() return an error instead, and find
a better name for unpack_object_header_gently() in that context. All
callers of unpack_object_header() are ready for it.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
It is possible to have pack corruption in the object header. Currently
unpack_object_header() simply die() on them instead of letting the caller
deal with that gracefully.
So let's have unpack_object_header() return an error instead, and find
a better name for unpack_object_header_gently() in that context. All
callers of unpack_object_header() are ready for it.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | diff | blob | history | |
cache.h | diff | blob | history | |
sha1_file.c | diff | blob | history |