mirror of
https://git.zx2c4.com/cgit
synced 2025-07-10 10:14:34 +02:00
Add include-parameter to config files
This parameter can be used to include another config-file, like a standalone repository listing. Suggested in a patch by Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
9ecde6568a
commit
5ec6e02bd1
3 changed files with 15 additions and 8 deletions
2
shared.c
2
shared.c
|
@ -137,6 +137,8 @@ void cgit_global_config_cb(const char *name, const char *value)
|
|||
cgit_repo->snapshots = atoi(value);
|
||||
else if (cgit_repo && !strcmp(name, "repo.module-link"))
|
||||
cgit_repo->module_link= xstrdup(value);
|
||||
else if (!strcmp(name, "include"))
|
||||
cgit_read_config(value, cgit_global_config_cb);
|
||||
}
|
||||
|
||||
void cgit_repo_config_cb(const char *name, const char *value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue