Re: [PATCH] pack-objects: proper pack time stamping with --max-pack-size
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 13, 2008, 20:59 UTC
- Message-ID
- <7vzlt2wdb4.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <alpine.LFD.1.00.0803131440590.2947@xanadu.home>
Nicolas Pitre <nico@cam.org> writes:
Show 7 quoted lines
> Runtime pack access is done in the pack file mtime order since recent > packs are more likely to contain frequently used objects than old packs. > However the --max-pack-size option can produce multiple packs with mtime > in the reversed order as newer objects are always written first. > > Let's modify mtime of later pack files (when any) so they appear older > than preceding ones when a repack creates multiple packs.
It is a very good companion to f7c22cc (always start looking up objects in the last used pack first, May 30, 2007) after 10 months ;-)