]> git.ipfire.org Git - thirdparty/git.git/commit - repo-settings.c
repo-settings: create feature.experimental setting
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 13 Aug 2019 18:37:48 +0000 (11:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Aug 2019 20:33:55 +0000 (13:33 -0700)
commitaaf633c2ad10b47af7623c130ddfe7231658c7e4
tree5265b28889ee19735ff4e4e59ff6b43965dc84d1
parentc6cc4c5afd2efd5f8081a3839b48d003de4e094f
repo-settings: create feature.experimental setting

The 'feature.experimental' setting includes config options that are
not committed to become defaults, but could use additional testing.

Update the following config settings to take new defaults, and to
use the repo_settings struct if not already using them:

* 'pack.useSparse=true'

* 'fetch.negotiationAlgorithm=skipping'

In the case of fetch.negotiationAlgorithm, the existing logic
would load the config option only when about to use the setting,
so had a die() statement on an unknown string value. This is
removed as now the config is parsed under prepare_repo_settings().
In general, this die() is probably misplaced and not valuable.
A test was removed that checked this die() statement executed.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/feature.txt
Documentation/config/fetch.txt
Documentation/config/pack.txt
fetch-negotiator.c
fetch-negotiator.h
fetch-pack.c
repo-settings.c
repository.h
t/t5552-skipping-fetch-negotiator.sh