|
diff --git a/cgit.c b/cgit.c index d6146e2..5666875 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -190,16 +190,18 @@ void config_cb(const char *name, const char *value) |
190 | else if (!strcmp(name, "scan-path")) |
190 | else if (!strcmp(name, "scan-path")) |
191 | if (!ctx.cfg.nocache && ctx.cfg.cache_size) |
191 | if (!ctx.cfg.nocache && ctx.cfg.cache_size) |
192 | process_cached_repolist(expand_macros(value)); |
192 | process_cached_repolist(expand_macros(value)); |
193 | else if (ctx.cfg.project_list) |
193 | else if (ctx.cfg.project_list) |
194 | scan_projects(expand_macros(value), |
194 | scan_projects(expand_macros(value), |
195 | ctx.cfg.project_list, repo_config); |
195 | ctx.cfg.project_list, repo_config); |
196 | else |
196 | else |
197 | scan_tree(expand_macros(value), repo_config); |
197 | scan_tree(expand_macros(value), repo_config); |
| |
198 | else if (!strcmp(name, "section-from-path")) |
| |
199 | ctx.cfg.section_from_path = atoi(value); |
198 | else if (!strcmp(name, "source-filter")) |
200 | else if (!strcmp(name, "source-filter")) |
199 | ctx.cfg.source_filter = new_filter(value, 1); |
201 | ctx.cfg.source_filter = new_filter(value, 1); |
200 | else if (!strcmp(name, "summary-log")) |
202 | else if (!strcmp(name, "summary-log")) |
201 | ctx.cfg.summary_log = atoi(value); |
203 | ctx.cfg.summary_log = atoi(value); |
202 | else if (!strcmp(name, "summary-branches")) |
204 | else if (!strcmp(name, "summary-branches")) |
203 | ctx.cfg.summary_branches = atoi(value); |
205 | ctx.cfg.summary_branches = atoi(value); |
204 | else if (!strcmp(name, "summary-tags")) |
206 | else if (!strcmp(name, "summary-tags")) |
205 | ctx.cfg.summary_tags = atoi(value); |
207 | ctx.cfg.summary_tags = atoi(value); |
|