mirror of
https://git.zx2c4.com/cgit
synced 2025-07-13 19:54:31 +02:00
cgit.c: add support for cgitrc option 'repo.scan'
When specified, the specified path will be scanned for repositories. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
fb9bf55cde
commit
6f3bf1ae1e
1 changed files with 2 additions and 0 deletions
2
cgit.c
2
cgit.c
|
@ -136,6 +136,8 @@ void config_cb(const char *name, const char *value)
|
|||
add_mimetype(name + 9, value);
|
||||
else if (!strcmp(name, "repo.group"))
|
||||
ctx.cfg.repo_group = xstrdup(value);
|
||||
else if (!strcmp(name, "repo.scan"))
|
||||
scan_tree(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