diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-02-12 13:16:11 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-02-12 13:16:11 -0800 |
commit | 3b89ff16aabd01ea2fecf507e72cf0c91f572751 (patch) | |
tree | 728525137285212f0bb2ee53373fcfd8a480e211 /builtin | |
parent | d4833b22abc0093153534cfaa93bb90be9a708ca (diff) | |
parent | 23c1e71369f4a5a5e5b176d77cfc9d8edf68ebec (diff) | |
download | git-3b89ff16aabd01ea2fecf507e72cf0c91f572751.tar.gz |
Merge branch 'tb/multi-pack-reuse-experiment'
Setting `feature.experimental` opts the user into multi-pack reuse
experiment
* tb/multi-pack-reuse-experiment:
pack-objects: enable multi-pack reuse via `feature.experimental`
t5332-multi-pack-reuse.sh: extract pack-objects helper functions
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/pack-objects.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index d8c2128a97..329aeac804 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -4396,6 +4396,8 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix) prepare_repo_settings(the_repository); if (sparse < 0) sparse = the_repository->settings.pack_use_sparse; + if (the_repository->settings.pack_use_multi_pack_reuse) + allow_pack_reuse = MULTI_PACK_REUSE; } reset_pack_idx_option(&pack_idx_opts); |