]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
ui-tree: add support for source-filter option
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 779a4643abb87e84aef93dc40239c26a4a17d63b..eb7b45d5e77f897276a3765b09124723e245439b 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -100,6 +100,8 @@ void config_cb(const char *name, const char *value)
                ctx.cfg.max_repo_count = atoi(value);
        else if (!strcmp(name, "max-commit-count"))
                ctx.cfg.max_commit_count = atoi(value);
+       else if (!strcmp(name, "source-filter"))
+               ctx.cfg.source_filter = new_filter(value, 1);
        else if (!strcmp(name, "summary-log"))
                ctx.cfg.summary_log = atoi(value);
        else if (!strcmp(name, "summary-branches"))