|
diff --git a/cgit.c b/cgit.c index 04cef23..e1d2216 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -184,24 +184,26 @@ void config_cb(const char *name, const char *value) |
184 | else if (!strcmp(name, "max-commit-count")) |
184 | else if (!strcmp(name, "max-commit-count")) |
185 | ctx.cfg.max_commit_count = atoi(value); |
185 | ctx.cfg.max_commit_count = atoi(value); |
186 | else if (!strcmp(name, "project-list")) |
186 | else if (!strcmp(name, "project-list")) |
187 | ctx.cfg.project_list = xstrdup(expand_macros(value)); |
187 | ctx.cfg.project_list = xstrdup(expand_macros(value)); |
188 | else if (!strcmp(name, "scan-path")) |
188 | else if (!strcmp(name, "scan-path")) |
189 | if (!ctx.cfg.nocache && ctx.cfg.cache_size) |
189 | if (!ctx.cfg.nocache && ctx.cfg.cache_size) |
190 | process_cached_repolist(expand_macros(value)); |
190 | process_cached_repolist(expand_macros(value)); |
191 | else if (ctx.cfg.project_list) |
191 | else if (ctx.cfg.project_list) |
192 | scan_projects(expand_macros(value), |
192 | scan_projects(expand_macros(value), |
193 | ctx.cfg.project_list, repo_config); |
193 | ctx.cfg.project_list, repo_config); |
194 | else |
194 | else |
195 | scan_tree(expand_macros(value), repo_config); |
195 | scan_tree(expand_macros(value), repo_config); |
| |
196 | else if (!strcmp(name, "section-from-path")) |
| |
197 | ctx.cfg.section_from_path = atoi(value); |
196 | else if (!strcmp(name, "source-filter")) |
198 | else if (!strcmp(name, "source-filter")) |
197 | ctx.cfg.source_filter = new_filter(value, 1); |
199 | ctx.cfg.source_filter = new_filter(value, 1); |
198 | else if (!strcmp(name, "summary-log")) |
200 | else if (!strcmp(name, "summary-log")) |
199 | ctx.cfg.summary_log = atoi(value); |
201 | ctx.cfg.summary_log = atoi(value); |
200 | else if (!strcmp(name, "summary-branches")) |
202 | else if (!strcmp(name, "summary-branches")) |
201 | ctx.cfg.summary_branches = atoi(value); |
203 | ctx.cfg.summary_branches = atoi(value); |
202 | else if (!strcmp(name, "summary-tags")) |
204 | else if (!strcmp(name, "summary-tags")) |
203 | ctx.cfg.summary_tags = atoi(value); |
205 | ctx.cfg.summary_tags = atoi(value); |
204 | else if (!strcmp(name, "side-by-side-diffs")) |
206 | else if (!strcmp(name, "side-by-side-diffs")) |
205 | ctx.cfg.ssdiff = atoi(value); |
207 | ctx.cfg.ssdiff = atoi(value); |
206 | else if (!strcmp(name, "agefile")) |
208 | else if (!strcmp(name, "agefile")) |
207 | ctx.cfg.agefile = xstrdup(value); |
209 | ctx.cfg.agefile = xstrdup(value); |
|