mirror of
https://git.zx2c4.com/cgit
synced 2025-07-21 11:24:22 +02:00
Introduce 'section' as canonical spelling for 'repo.group'
The 'repo.' prefix should be reserved for repo-specific options, but the option 'repo.group' must still be honored to stay backwards compatible. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
50d5af3adc
commit
e7af002d5c
6 changed files with 22 additions and 17 deletions
4
cgit.c
4
cgit.c
|
@ -143,8 +143,8 @@ void config_cb(const char *name, const char *value)
|
|||
ctx.cfg.local_time = atoi(value);
|
||||
else if (!prefixcmp(name, "mimetype."))
|
||||
add_mimetype(name + 9, value);
|
||||
else if (!strcmp(name, "repo.group"))
|
||||
ctx.cfg.repo_group = xstrdup(value);
|
||||
else if (!strcmp(name, "section") || !strcmp(name, "repo.group"))
|
||||
ctx.cfg.section = xstrdup(value);
|
||||
else if (!strcmp(name, "repo.url"))
|
||||
ctx.repo = cgit_add_repo(value);
|
||||
else if (!strcmp(name, "repo.name"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue