summaryrefslogtreecommitdiff
path: root/repo-settings.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2023-04-18 16:41:00 -0400
committerJunio C Hamano <gitster@pobox.com>2023-04-18 14:56:48 -0700
commit029a632c35861b3395c71e767d80bbf463dc1ae1 (patch)
tree40a2f42d20ca59b8ed3ecb0406126ef6586d901c /repo-settings.c
parente3e24de1bf1fd443978015fe06bb523dc85a3086 (diff)
downloadgit-029a632c35861b3395c71e767d80bbf463dc1ae1.tar.gz
repository.h: drop unused `gc_cruft_packs`
As of the previous commit, all callers that need to read the value of `gc.cruftPacks` do so outside without using the `repo_settings` struct, making its `gc_cruft_packs` unused. Drop it accordingly. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repo-settings.c')
-rw-r--r--repo-settings.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/repo-settings.c b/repo-settings.c
index 0a6c0b381f..a8d0b98794 100644
--- a/repo-settings.c
+++ b/repo-settings.c
@@ -41,10 +41,8 @@ void prepare_repo_settings(struct repository *r)
repo_cfg_bool(r, "feature.experimental", &experimental, 0);
/* Defaults modified by feature.* */
- if (experimental) {
+ if (experimental)
r->settings.fetch_negotiation_algorithm = FETCH_NEGOTIATION_SKIPPING;
- r->settings.gc_cruft_packs = 1;
- }
if (manyfiles) {
r->settings.index_version = 4;
r->settings.index_skip_hash = 1;