author | Lars Hjemli <hjemli@gmail.com> | 2010-09-19 16:46:17 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-09-19 16:46:17 (UTC) |
commit | 536c7a1eb201b44b9266babe087cb6f2b75e4a7f (patch) (unidiff) | |
tree | 899ecd47f770b1909d107b0f1c777e8b032b25fc /cgit.c | |
parent | e76a1ea427792aaa331cdec70d7d4ff1fb3422e0 (diff) | |
parent | 797110e39d5d433638c82cf27d584ed9b8b93bb7 (diff) | |
download | cgit-536c7a1eb201b44b9266babe087cb6f2b75e4a7f.zip cgit-536c7a1eb201b44b9266babe087cb6f2b75e4a7f.tar.gz cgit-536c7a1eb201b44b9266babe087cb6f2b75e4a7f.tar.bz2 |
Merge branch 'lh/section-from-path'
Conflicts:
scan-tree.c
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |