]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Add config option 'repo.section'
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 013a0feb3a3f36923c7cf59c76c964d690edaaf8..7264b8e5d9af7399d02008557f34684a365d1ebf 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -169,6 +169,8 @@ void config_cb(const char *name, const char *value)
                ctx.repo->max_stats = cgit_find_stats_period(value, NULL);
        else if (ctx.repo && !strcmp(name, "repo.module-link"))
                ctx.repo->module_link= xstrdup(value);
+       else if (ctx.repo && !strcmp(name, "repo.section"))
+               ctx.repo->section = xstrdup(value);
        else if (ctx.repo && !strcmp(name, "repo.about-filter"))
                ctx.repo->about_filter = new_filter(value, 0);
        else if (ctx.repo && !strcmp(name, "repo.commit-filter"))