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
@@ -172,48 +172,50 @@ void config_cb(const char *name, const char *value) | |||
172 | else if (!strcmp(name, "embedded")) | 172 | else if (!strcmp(name, "embedded")) |
173 | ctx.cfg.embedded = atoi(value); | 173 | ctx.cfg.embedded = atoi(value); |
174 | else if (!strcmp(name, "max-atom-items")) | 174 | else if (!strcmp(name, "max-atom-items")) |
175 | ctx.cfg.max_atom_items = atoi(value); | 175 | ctx.cfg.max_atom_items = atoi(value); |
176 | else if (!strcmp(name, "max-message-length")) | 176 | else if (!strcmp(name, "max-message-length")) |
177 | ctx.cfg.max_msg_len = atoi(value); | 177 | ctx.cfg.max_msg_len = atoi(value); |
178 | else if (!strcmp(name, "max-repodesc-length")) | 178 | else if (!strcmp(name, "max-repodesc-length")) |
179 | ctx.cfg.max_repodesc_len = atoi(value); | 179 | ctx.cfg.max_repodesc_len = atoi(value); |
180 | else if (!strcmp(name, "max-blob-size")) | 180 | else if (!strcmp(name, "max-blob-size")) |
181 | ctx.cfg.max_blob_size = atoi(value); | 181 | ctx.cfg.max_blob_size = atoi(value); |
182 | else if (!strcmp(name, "max-repo-count")) | 182 | else if (!strcmp(name, "max-repo-count")) |
183 | ctx.cfg.max_repo_count = atoi(value); | 183 | ctx.cfg.max_repo_count = atoi(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); |
208 | else if (!strcmp(name, "renamelimit")) | 210 | else if (!strcmp(name, "renamelimit")) |
209 | ctx.cfg.renamelimit = atoi(value); | 211 | ctx.cfg.renamelimit = atoi(value); |
210 | else if (!strcmp(name, "remove-suffix")) | 212 | else if (!strcmp(name, "remove-suffix")) |
211 | ctx.cfg.remove_suffix = atoi(value); | 213 | ctx.cfg.remove_suffix = atoi(value); |
212 | else if (!strcmp(name, "robots")) | 214 | else if (!strcmp(name, "robots")) |
213 | ctx.cfg.robots = xstrdup(value); | 215 | ctx.cfg.robots = xstrdup(value); |
214 | else if (!strcmp(name, "clone-prefix")) | 216 | else if (!strcmp(name, "clone-prefix")) |
215 | ctx.cfg.clone_prefix = xstrdup(value); | 217 | ctx.cfg.clone_prefix = xstrdup(value); |
216 | else if (!strcmp(name, "local-time")) | 218 | else if (!strcmp(name, "local-time")) |
217 | ctx.cfg.local_time = atoi(value); | 219 | ctx.cfg.local_time = atoi(value); |
218 | else if (!prefixcmp(name, "mimetype.")) | 220 | else if (!prefixcmp(name, "mimetype.")) |
219 | add_mimetype(name + 9, value); | 221 | add_mimetype(name + 9, value); |