diff options
author | Taylor Blau <me@ttaylorr.com> | 2021-09-28 21:55:20 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-28 21:20:56 -0700 |
commit | 6d08b9d4caa230441b7d9e2b4f23deaf9ff74c13 (patch) | |
tree | 998a9f118f75eac980c677a0e41a16e2e0cd4a9d /Documentation | |
parent | builtin/repack.c: support writing a MIDX while repacking (diff) | |
download | tgif-6d08b9d4caa230441b7d9e2b4f23deaf9ff74c13.tar.xz |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-repack.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt index 0f2d235ca5..7183fb498f 100644 --- a/Documentation/git-repack.txt +++ b/Documentation/git-repack.txt @@ -190,6 +190,10 @@ this "roll-up", without respect to their reachability. This is subject to change in the future. This option (implying a drastically different repack mode) is not guaranteed to work with all other combinations of option to `git repack`. ++ +When writing a multi-pack bitmap, `git repack` selects the largest resulting +pack as the preferred pack for object selection by the MIDX (see +linkgit:git-multi-pack-index[1]). -m:: --write-midx:: |