]> git.ipfire.org Git - thirdparty/git.git/commit
multi-pack-index: respect repack.packKeptObjects=false
authorDerrick Stolee <dstolee@microsoft.com>
Sun, 10 May 2020 16:07:34 +0000 (16:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 May 2020 16:50:55 +0000 (09:50 -0700)
commit3ce4ca0a56afd4b67105dd580948973cecc79162
treeb9c4cccf0d17e6d1ebd1560d5c611fd75ba218f0
parente11d86de13988e986550043b307b1f9a52324458
multi-pack-index: respect repack.packKeptObjects=false

When selecting a batch of pack-files to repack in the "git
multi-pack-index repack" command, Git should respect the
repack.packKeptObjects config option. When false, this option says that
the pack-files with an associated ".keep" file should not be repacked.
This config value is "false" by default.

There are two cases for selecting a batch of objects. The first is the
case where the input batch-size is zero, which specifies "repack
everything". The second is with a non-zero batch size, which selects
pack-files using a greedy selection criteria. Both of these cases are
updated and tested.

Reported-by: Son Luong Ngoc <sluongng@gmail.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-multi-pack-index.txt
midx.c
t/t5319-multi-pack-index.sh