[PATCH 0/9] more robustness against pack corruptions
- From
Nicolas Pitre <nico@cam.org>
- Date
- Oct 29, 2008, 23:02 UTC
- Message-ID
- <1225321372-6570-1-git-send-email-nico@cam.org>
A few months ago I produced a set of patches to allow git to work even in the presence of pack corruption given that the corrupted objects have a good duplicate in the object store. Turns out that this work was rather incomplete and covered only a limited set of cases.
This series extend coverage to all cases I could think about, and make repack-objects able to create a good pack in such conditions to "fix" the corruption without having to perform a full repack.
Yes, this is all about the small and trivial patch I posted a while ago that I intended to repost with a test case. Well, the test failed miserably, resulting in this series before it finally all passed. ;-)
builtin-pack-objects.c | 79 +++++++++++++++++----- builtin-unpack-objects.c | 2 + cache.h | 2 +- index-pack.c | 2 +- pack-revindex.c | 3 +- sha1_file.c | 85 ++++++++++++++++++----- t/t5302-pack-index.sh | 3 +- t/t5303-pack-corruption-resilience.sh | 96 +++++++++++++++++++++++++-- 8 files changed, 223 insertions(+), 49 deletions(-)
Nicolas