]> git.ipfire.org Git - thirdparty/git.git/commitdiff
repository.h: drop unused `gc_cruft_packs`
authorTaylor Blau <me@ttaylorr.com>
Tue, 18 Apr 2023 20:41:00 +0000 (16:41 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Apr 2023 21:56:48 +0000 (14:56 -0700)
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>
repo-settings.c
repository.h

index 0a6c0b381fe13b50fb14b5b6e31ca06c0d44f695..a8d0b98794e0d7430941df4d4fd2f89a31b94406 100644 (file)
@@ -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;
index 15a8afc5fb5b31b12bc3495663f9f3ca2f399c7e..50eb0ce391b05f5e29e1528b09ff5cf2dcae86fc 100644 (file)
@@ -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;