Re: Q: does index-pack work in place on windows?
From: Nicolas Pitre <nico@fluxnic.net>
Date: 2016-06-15 22:50:30
On Thu, 3 Feb 2011, Junio C Hamano wrote:
Nicolas Pitre [off-list ref] writes:quoted
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