config: read config from a repository object
[gitweb.git] / repository.h
index 0a1db9633f7b64f142e2314edae0d80622de8fda..8ae5e8653a1ae31fc5bd124a533f966718184479 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef REPOSITORY_H
 #define REPOSITORY_H
 
+struct config_set;
+
 struct repository {
        /* Environment */
        /*
@@ -39,6 +41,14 @@ struct repository {
         */
        char *worktree;
 
+       /* Subsystems */
+       /*
+        * Repository's config which contains key-value pairs from the usual
+        * set of config files (i.e. repo specific .git/config, user wide
+        * ~/.gitconfig, XDG config file and the global /etc/gitconfig)
+        */
+       struct config_set *config;
+
        /* Configurations */
        /*
         * Bit used during initialization to indicate if repository state (like