]> git.ipfire.org Git - thirdparty/git.git/blobdiff - repository.h
repo-settings: consolidate some config settings
[thirdparty/git.git] / repository.h
index 4fb6a5885f794dea9ff7a1ecf37f27bc34e4d218..cc285ad3278bf8ac40dfb780afa523e2ee280029 100644 (file)
@@ -11,6 +11,17 @@ struct pathspec;
 struct raw_object_store;
 struct submodule_cache;
 
+struct repo_settings {
+       int initialized;
+
+       int core_commit_graph;
+       int gc_write_commit_graph;
+
+       int index_version;
+
+       int pack_use_sparse;
+};
+
 struct repository {
        /* Environment */
        /*
@@ -72,6 +83,8 @@ struct repository {
         */
        char *submodule_prefix;
 
+       struct repo_settings settings;
+
        /* Subsystems */
        /*
         * Repository's config which contains key-value pairs from the usual
@@ -157,5 +170,6 @@ int repo_read_index_unmerged(struct repository *);
  */
 void repo_update_index_if_able(struct repository *, struct lock_file *);
 
+void prepare_repo_settings(struct repository *r);
 
 #endif /* REPOSITORY_H */