From: "Shawn O. Pearce" <spearce@spearce.org>
To: Pieter de Bie <pdebie@ai.rug.nl>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>,
git@vger.kernel.org, nico@cam.org
Subject: Re: How to replace a single corrupt, packed object?
Date: Fri, 8 Aug 2008 09:36:28 -0700 [thread overview]
Message-ID: <20080808163628.GF9152@spearce.org> (raw)
In-Reply-To: <90E12BC7-1950-41DF-8BE5-C6B63CE060D9@ai.rug.nl>
Pieter de Bie <pdebie@ai.rug.nl> wrote:
> On 8 aug 2008, at 18:19, Shawn O. Pearce wrote:
>
>> The unpack-objects process will
>> fail when it finds this bad object, and everything after that in
>> the pack file will be dropped on the floor and not get unpacked.
>
> Even with the -r switch?
>
> -r When unpacking a corrupt packfile, the command dies at the
> first corruption. This flag tells it to keep going and make
> the best effort to recover as many objects as possible.
Oh, thanks for reminding me. I had forgotten that Linus added -r
when someone else had corruption in a packed object. Yea, if you
use -r it may be able to resume and pick up where it left off.
I haven't studied the -r code so I'm not sure how it knows where
its safe to restart unpacking from. But if you have a .idx file
we probably could make a really good guess based on the offsets
it stores. I doubt unpack-objects makes use of the .idx.
--
Shawn.
next prev parent reply other threads:[~2008-08-08 16:37 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-08 14:41 How to replace a single corrupt, packed object? Johannes Schindelin
2008-08-08 14:39 ` Shawn O. Pearce
2008-08-08 14:50 ` Johannes Schindelin
2008-08-08 15:21 ` Johannes Schindelin
2008-08-08 16:23 ` Shawn O. Pearce
2008-08-08 15:30 ` Pieter de Bie
2008-08-08 16:19 ` Shawn O. Pearce
[not found] ` <90E12BC7-1950-41DF-8BE5-C6B63CE060D9@ai.rug.nl>
2008-08-08 16:36 ` Shawn O. Pearce [this message]
2008-08-08 16:48 ` Johannes Schindelin
2008-08-11 2:55 ` Nicolas Pitre
2008-08-11 3:07 ` Shawn O. Pearce
2008-08-11 3:40 ` Nicolas Pitre
2008-08-11 3:46 ` Shawn O. Pearce
2008-08-11 18:59 ` Johannes Schindelin
2008-08-11 1:43 ` Nicolas Pitre
2008-09-15 14:05 ` Johannes Schindelin
2008-09-15 16:26 ` Nicolas Pitre
2008-09-15 16:34 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080808163628.GF9152@spearce.org \
--to=spearce@spearce.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=nico@cam.org \
--cc=pdebie@ai.rug.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).