]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Add support for 'section-from-path' option
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index d6146e2270737806513b0ceca0e187475f93c121..5666875d21509b90eb3659ccfbbce3b3db7d5a90 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -195,6 +195,8 @@ void config_cb(const char *name, const char *value)
                                      ctx.cfg.project_list, repo_config);
                else
                        scan_tree(expand_macros(value), repo_config);
+       else if (!strcmp(name, "section-from-path"))
+               ctx.cfg.section_from_path = atoi(value);
        else if (!strcmp(name, "source-filter"))
                ctx.cfg.source_filter = new_filter(value, 1);
        else if (!strcmp(name, "summary-log"))