diff options
author | Glen Choo <chooglen@google.com> | 2021-10-15 13:16:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-15 14:30:10 -0700 |
commit | a897ab7ed143b2790f05785a3b1916f8a71c7a8c (patch) | |
tree | fac7b1d1a3bbd0faacb204e09f360b11c96d1709 /Documentation/RelNotes/2.33.1.txt | |
parent | fsck: verify multi-pack-index when implictly enabled (diff) | |
download | tgif-a897ab7ed143b2790f05785a3b1916f8a71c7a8c.tar.xz |
gc: perform incremental repack when implictly enabled
builtin/gc.c has two ways of checking if multi-pack-index is enabled:
- git_config_get_bool() in incremental_repack_auto_condition()
- the_repository->settings.core_multi_pack_index in
maintenance_task_incremental_repack()
The two implementations have existed since the incremental-repack task
was introduced in e841a79a13 (maintenance: add incremental-repack auto
condition, 2020-09-25). These two values can diverge because
prepare_repo_settings() enables the feature in the_repository->settings
by default.
In the case where core.multiPackIndex is not set in the config, the auto
condition would fail, causing the incremental-repack task to not be
run. Because we always want to consider the default values, we should
always use the_repository->settings.
Standardize on using the_repository->settings.core_multi_pack_index to
check if multi-pack-index is enabled.
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/2.33.1.txt')
0 files changed, 0 insertions, 0 deletions