git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Q: does index-pack work in place on windows?

From
Nicolas Pitre <nico@fluxnic.net>
Date
Feb 4, 2011, 02:45 UTC
Message-ID
<alpine.LFD.2.00.1102032137230.12104@xanadu.home>
In-Reply-To
<7v1v3ozhij.fsf@alter.siamese.dyndns.org>
On Thu, 3 Feb 2011, Junio C Hamano wrote:
Show 10 quoted lines
> Nicolas Pitre <nico@fluxnic.net> writes:
> 
> > However index-pack won't tell you what is broken in the pack when 
> > corruptions are to be found.
> 
> Yes, but at that point, you are pretty much lost anyway, as the only thing
> you can do to salvage salvageable parts of the broken pack, if you still
> trust its associated .idx file, is to walk the table of contents and ask
> for each individual object; knowing where the .pack or .idx is broken with
> the current verify-pack does not help you very much.

Well... given that you do have to compare both the generated index and the on-disk index at some point, it is then possible to identify corrupted objects and their location. And with pack index version 2 including a CRC for the packed data, you should be able to tell if the corruption is actually in the pack or in the index (or both if the final pack/index SHA1 sum doesn't match).

Nicolas
Previous: Junio C Hamano
Message 7 of 7 in “Q: does index-pack work in place on windows?”
  1. Junio C HamanoFeb 2, 2011
  2. Erik Faye-LundFeb 2, 2011
  3. Nicolas PitreFeb 3, 2011
  4. Junio C HamanoFeb 3, 2011
  5. Nicolas PitreFeb 4, 2011
  6. Junio C HamanoFeb 4, 2011
  7. Nicolas PitreFeb 4, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.