summaryrefslogtreecommitdiffabout
path: root/cgit.c
authorLars Hjemli <hjemli@gmail.com>2010-08-21 13:44:09 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2010-08-22 11:35:56 (UTC)
commit797110e39d5d433638c82cf27d584ed9b8b93bb7 (patch) (side-by-side diff)
treecead7ef38aec7dfa76603870b4734ab403405d32 /cgit.c
parent6d7552bc072599313ef423d69156d824c075572a (diff)
downloadcgit-797110e39d5d433638c82cf27d584ed9b8b93bb7.zip
cgit-797110e39d5d433638c82cf27d584ed9b8b93bb7.tar.gz
cgit-797110e39d5d433638c82cf27d584ed9b8b93bb7.tar.bz2
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') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index d6146e2..5666875 100644
--- a/cgit.c
+++ b/cgit.c
@@ -195,6 +195,8 @@ void config_cb(const char *name, const char *value)
ctx.cfg.project_list, repo_config);
else
scan_tree(expand_macros(value), repo_config);
+ else if (!strcmp(name, "section-from-path"))
+ ctx.cfg.section_from_path = atoi(value);
else if (!strcmp(name, "source-filter"))
ctx.cfg.source_filter = new_filter(value, 1);
else if (!strcmp(name, "summary-log"))