]> git.ipfire.org Git - thirdparty/git.git/blobdiff - repo-settings.c
dir.h: move DTYPE defines from cache.h
[thirdparty/git.git] / repo-settings.c
index 3021921c53d22a29ff4a677fc0f569f4818e8244..0a6c0b381fe13b50fb14b5b6e31ca06c0d44f695 100644 (file)
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "git-compat-util.h"
 #include "config.h"
 #include "repository.h"
 #include "midx.h"
@@ -47,6 +47,7 @@ void prepare_repo_settings(struct repository *r)
        }
        if (manyfiles) {
                r->settings.index_version = 4;
+               r->settings.index_skip_hash = 1;
                r->settings.core_untracked_cache = UNTRACKED_CACHE_WRITE;
        }
 
@@ -61,6 +62,7 @@ void prepare_repo_settings(struct repository *r)
        repo_cfg_bool(r, "pack.usesparse", &r->settings.pack_use_sparse, 1);
        repo_cfg_bool(r, "core.multipackindex", &r->settings.core_multi_pack_index, 1);
        repo_cfg_bool(r, "index.sparse", &r->settings.sparse_index, 0);
+       repo_cfg_bool(r, "index.skiphash", &r->settings.index_skip_hash, r->settings.index_skip_hash);
 
        /*
         * The GIT_TEST_MULTI_PACK_INDEX variable is special in that