author | Nicolas Pitre <nico@cam.org> | |
Thu, 13 Mar 2008 18:59:29 +0000 (14:59 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Mar 2008 05:51:30 +0000 (22:51 -0700) | ||
commit | f746bae84e4746a861d9ebed29fd9255e5cd929f | |
tree | 04361153853f68efce7e726929426e55d91478ab | tree | snapshot |
parent | b75aaa546e0593440d85c77d380c9b53e126ea02 | commit | diff |
pack-objects: proper pack time stamping with --max-pack-size
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.
Signed-off-by: Nicolas Pitre <nico@cam.org>
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.
Signed-off-by: Nicolas Pitre <nico@cam.org>
builtin-pack-objects.c | diff | blob | history | |
git-compat-util.h | diff | blob | history |