diff options
author | Lars Hjemli | 2010-08-21 15:44:09 +0200 |
---|---|---|
committer | Lars Hjemli | 2010-08-22 13:35:56 +0200 |
commit | 797110e39d5d433638c82cf27d584ed9b8b93bb7 (patch) | |
tree | cead7ef38aec7dfa76603870b4734ab403405d32 /cgit.c | |
parent | 6d7552bc072599313ef423d69156d824c075572a (diff) | |
download | cgit-797110e39d5d433638c82cf27d584ed9b8b93bb7.tar.gz cgit-797110e39d5d433638c82cf27d584ed9b8b93bb7.tar.bz2 cgit-797110e39d5d433638c82cf27d584ed9b8b93bb7.zip |
Add support for 'section-from-path' option
This option can be used to autogenerate section names during scan-path
processing.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -195,6 +195,8 @@ void config_cb(const char *name, const char *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")) |