]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.c
Move function for configfile parsing into configfile.[ch]
[cgit.git] / cgit.c
diff --git a/cgit.c b/cgit.c
index f749b6be181b85fdb9b020ef659f517b289a6b08..1f46e0d701f83f3a36d2e9282f44461f956b1041 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -7,7 +7,9 @@
  */
 
 #include "cgit.h"
+#include "cache.h"
 #include "cmd.h"
+#include "configfile.h"
 #include "ui-shared.h"
 
 const char *cgit_version = CGIT_VERSION;
@@ -102,7 +104,7 @@ void config_cb(const char *name, const char *value)
                else
                        ctx.repo->readme = xstrdup(fmt("%s/%s", ctx.repo->path, value));
        } else if (!strcmp(name, "include"))
-               cgit_read_config(value, config_cb);
+               parse_configfile(value, config_cb);
 }
 
 static void querystring_cb(const char *name, const char *value)
@@ -435,7 +437,7 @@ int main(int argc, const char **argv)
        cgit_repolist.count = 0;
        cgit_repolist.repos = NULL;
 
-       cgit_read_config(cgit_config_env ? cgit_config_env : CGIT_CONFIG,
+       parse_configfile(cgit_config_env ? cgit_config_env : CGIT_CONFIG,
                         config_cb);
        if (getenv("SCRIPT_NAME"))
                ctx.cfg.script_name = xstrdup(getenv("SCRIPT_NAME"));