diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2020-05-10 16:07:34 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-10 16:50:55 (GMT) |
commit | 3ce4ca0a56afd4b67105dd580948973cecc79162 (patch) | |
tree | b9c4cccf0d17e6d1ebd1560d5c611fd75ba218f0 /Documentation | |
parent | e11d86de13988e986550043b307b1f9a52324458 (diff) | |
download | git-3ce4ca0a56afd4b67105dd580948973cecc79162.zip git-3ce4ca0a56afd4b67105dd580948973cecc79162.tar.gz git-3ce4ca0a56afd4b67105dd580948973cecc79162.tar.bz2 |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-multi-pack-index.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-multi-pack-index.txt b/Documentation/git-multi-pack-index.txt index 642d9ac..0c66194 100644 --- a/Documentation/git-multi-pack-index.txt +++ b/Documentation/git-multi-pack-index.txt @@ -56,6 +56,9 @@ repack:: file is created, rewrite the multi-pack-index to reference the new pack-file. A later run of 'git multi-pack-index expire' will delete the pack-files that were part of this batch. ++ +If `repack.packKeptObjects` is `false`, then any pack-files with an +associated `.keep` file will not be selected for the batch to repack. EXAMPLES |