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>
This commit is contained in:
2
cgit.c
2
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"))
|
||||
|
Reference in New Issue
Block a user