Re: [PATCH] t7700: demonstrate mishandling of objects in packs with a .keep file
- From
Andreas Ericsson <ae@op5.se>
- Date
- Nov 4, 2008, 19:25 UTC
- Message-ID
- <4910A1B8.8070506@op5.se>
- In-Reply-To
- <76IhmMdjmr4jA4xApPpvlZ4vfjtqEDsUaFal2mN5MHfI0MChFmsj5g@cipher.nrlssc.navy.mil>
Brandon Casey wrote:
Show 6 quoted lines
> Andreas Ericsson wrote: > >> So long as "git repack -a" still creates a mega-pack, I'm fine with >> whatever. > > I don't think it will after pack-objects is taught about .keep files, and
In that case you're almost certainly breaking something.
> I don't think it will _now_ if all of your packs have .keep files. >
It should, by copying the objects from the .keep-marked packfiles. Otherwise either repack or the repack docs are in error.
Show 13 quoted lines
> 'repack -a' will call pack-objects with either '--unpack=<packfile>' for > each pack file without a .keep file, or with '--unpacked --incremental' if > there are no pack files without .keep files. > > In the first case, the modifications to pack-objects that I propose > will prevent objects that exist in local packs with .keep files > from being packed into the new pack. > > In the second case, the --incremental option would have done the same thing. > > So this inconsistency already existed, but will now be removed in favor of > honoring .keep files. >
That means the nifty hack of incrementally and sometimes fully repack the odb to speed up cloning over dumb protocols no longer works properly, then.
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231