Re: [RFC] git-fetch - repack in the background after fetching
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- May 30, 2006, 06:37 UTC
- Message-ID
- <Pine.LNX.4.64.0605300207130.6713@iabervon.org>
- In-Reply-To
- <Pine.LNX.4.64.0605292147010.5623@g5.osdl.org>
On Mon, 29 May 2006, Linus Torvalds wrote:
> Some long-running (in git terms) git programs will look up the pack-files > when they start, and if you repack after that, they won't see the new > pack-file, but they _will_ notice that the unpacked files are no longer > there, and will be very unhappy indeed.
We should be able to fix this, right? If an object isn't found in packs or unpacked, look for new packs; if there are any, look for the object in them; if it's not there, then give up. The only tricky thing is making it possible to scan through the available packs without installing any that are already installed. I think the failure case is only a critical path in the history-walking fetch code, which should probably disable this (or defer it to after trying to download the object).
-Daniel *This .sig left intentionally blank*