]> git.ipfire.org Git - thirdparty/git.git/commit
midx: teach "git multi-pack-index repack" honor "git repack" configurations
authorSon Luong Ngoc <sluongng@gmail.com>
Sun, 10 May 2020 16:07:33 +0000 (16:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 May 2020 16:50:53 +0000 (09:50 -0700)
commite11d86de13988e986550043b307b1f9a52324458
treee6e56f7521e0192cbb7d3fb269ff9fcd7e25295b
parentb994622632154fc3b17fb40a38819ad954a5fb88
midx: teach "git multi-pack-index repack" honor "git repack" configurations

When the "repack" subcommand of "git multi-pack-index" command
creates new packfile(s), it does not call the "git repack"
command but instead directly calls the "git pack-objects"
command, and the configuration variables meant for the "git
repack" command, like "repack.usedaeltabaseoffset", are ignored.

Check the configuration variables used by "git repack" ourselves
in "git multi-index-pack" and pass the corresponding options to
underlying "git pack-objects".

Note that `repack.writeBitmaps` configuration is ignored, as the
pack bitmap facility is useful only with a single packfile.

Signed-off-by: Son Luong Ngoc <sluongng@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c