summaryrefslogtreecommitdiffstats
path: root/index-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-04 07:55:54 +0200
committerJunio C Hamano <junkio@cox.net>2006-09-04 11:42:00 +0200
commitf986f2c830b24a0f56f2bf4b3f30353ca1e372a9 (patch)
treec6bcc444c0bcd81b6a4844034bde1a1bdaff248a /index-pack.c
parentgitweb: Change the name of diff to parent link in "commit" view to "diff (diff)
downloadgit-f986f2c830b24a0f56f2bf4b3f30353ca1e372a9.tar.xz
git-f986f2c830b24a0f56f2bf4b3f30353ca1e372a9.zip
unpack-objects desperately salvages objects from a corrupt pack
The command unpack-objects dies upon the first error. This is probably considered a feature -- if a pack is corrupt, instead of trying to extract from it and possibly risking to contaminate a good repository with objects whose validity is dubious, we should seek a good copy of the pack and retry. However, we may not have any good copy anywhere. This implements the last resort effort to extract what are salvageable from such a corrupt pack. This flag might have helped Sergio when recovering from a corrupt pack. In my test, it managed to salvage 247 objects out of a pack that had 251 objects but without it the command stopped after extracting 73 objects. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'index-pack.c')
0 files changed, 0 insertions, 0 deletions