|
diff --git a/cgit.c b/cgit.c index d6146e2..5666875 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -186,24 +186,26 @@ void config_cb(const char *name, const char *value) |
186 | else if (!strcmp(name, "max-commit-count")) |
186 | else if (!strcmp(name, "max-commit-count")) |
187 | ctx.cfg.max_commit_count = atoi(value); |
187 | ctx.cfg.max_commit_count = atoi(value); |
188 | else if (!strcmp(name, "project-list")) |
188 | else if (!strcmp(name, "project-list")) |
189 | ctx.cfg.project_list = xstrdup(expand_macros(value)); |
189 | ctx.cfg.project_list = xstrdup(expand_macros(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); |
206 | else if (!strcmp(name, "side-by-side-diffs")) |
208 | else if (!strcmp(name, "side-by-side-diffs")) |
207 | ctx.cfg.ssdiff = atoi(value); |
209 | ctx.cfg.ssdiff = atoi(value); |
208 | else if (!strcmp(name, "agefile")) |
210 | else if (!strcmp(name, "agefile")) |
209 | ctx.cfg.agefile = xstrdup(value); |
211 | ctx.cfg.agefile = xstrdup(value); |
|