mirror of
https://git.zx2c4.com/cgit
synced 2025-07-16 05:04:35 +02:00
Add config option 'repo.section'
This option can be used to specify the section name for the current repository. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
e7af002d5c
commit
3939854578
2 changed files with 5 additions and 0 deletions
2
cgit.c
2
cgit.c
|
@ -169,6 +169,8 @@ void config_cb(const char *name, const char *value)
|
|||
ctx.repo->max_stats = cgit_find_stats_period(value, NULL);
|
||||
else if (ctx.repo && !strcmp(name, "repo.module-link"))
|
||||
ctx.repo->module_link= xstrdup(value);
|
||||
else if (ctx.repo && !strcmp(name, "repo.section"))
|
||||
ctx.repo->section = xstrdup(value);
|
||||
else if (ctx.repo && !strcmp(name, "repo.about-filter"))
|
||||
ctx.repo->about_filter = new_filter(value, 0);
|
||||
else if (ctx.repo && !strcmp(name, "repo.commit-filter"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue