diff options
author | Taylor Blau <me@ttaylorr.com> | 2023-04-18 22:41:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-18 23:56:48 +0200 |
commit | 029a632c35861b3395c71e767d80bbf463dc1ae1 (patch) | |
tree | 40a2f42d20ca59b8ed3ecb0406126ef6586d901c | |
parent | builtin/gc.c: make `gc.cruftPacks` enabled by default (diff) | |
download | git-029a632c35861b3395c71e767d80bbf463dc1ae1.tar.xz git-029a632c35861b3395c71e767d80bbf463dc1ae1.zip |
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>
-rw-r--r-- | repo-settings.c | 4 | ||||
-rw-r--r-- | repository.h | 1 |
2 files changed, 1 insertions, 4 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; diff --git a/repository.h b/repository.h index 15a8afc5fb..50eb0ce391 100644 --- a/repository.h +++ b/repository.h @@ -33,7 +33,6 @@ struct repo_settings { int commit_graph_generation_version; int commit_graph_read_changed_paths; int gc_write_commit_graph; - int gc_cruft_packs; int fetch_write_commit_graph; int command_requires_full_index; int sparse_index; |