Skip to content

Commit 029a632

Browse files
ttaylorrgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e3e24de commit 029a632

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

repo-settings.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ void prepare_repo_settings(struct repository *r)
4141
repo_cfg_bool(r, "feature.experimental", &experimental, 0);
4242

4343
/* Defaults modified by feature.* */
44-
if (experimental) {
44+
if (experimental)
4545
r->settings.fetch_negotiation_algorithm = FETCH_NEGOTIATION_SKIPPING;
46-
r->settings.gc_cruft_packs = 1;
47-
}
4846
if (manyfiles) {
4947
r->settings.index_version = 4;
5048
r->settings.index_skip_hash = 1;

repository.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ struct repo_settings {
3333
int commit_graph_generation_version;
3434
int commit_graph_read_changed_paths;
3535
int gc_write_commit_graph;
36-
int gc_cruft_packs;
3736
int fetch_write_commit_graph;
3837
int command_requires_full_index;
3938
int sparse_index;

0 commit comments

Comments
 (0)