]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-repack.txt
builtin/repack.c: make largest pack preferred
authorTaylor Blau <me@ttaylorr.com>
Wed, 29 Sep 2021 01:55:20 +0000 (21:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Sep 2021 04:20:56 +0000 (21:20 -0700)
commit6d08b9d4caa230441b7d9e2b4f23deaf9ff74c13
tree998a9f118f75eac980c677a0e41a16e2e0cd4a9d
parent1d89d88d37d18cd3af37ef4742aa39282441ec14
builtin/repack.c: make largest pack preferred

When repacking into a geometric series and writing a multi-pack bitmap,
it is beneficial to have the largest resulting pack be the preferred
object source in the bitmap's MIDX, since selecting the large packs can
lead to fewer broken delta chains and better compression.

Teach 'git repack' to identify this pack and pass it to the MIDX write
machinery in order to mark it as preferred.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-repack.txt
builtin/repack.c
pack-bitmap.c
pack-bitmap.h
t/helper/test-read-midx.c
t/t7703-repack-geometric.sh