From 6f3bf1ae1eb1d4114a1df0194b2236665a13bdac Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Tue, 11 Aug 2009 10:09:06 +0200 Subject: cgit.c: add support for cgitrc option 'repo.scan' When specified, the specified path will be scanned for repositories. Signed-off-by: Lars Hjemli --- cgit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgit.c b/cgit.c index b0e1c44..97f5e08 100644 --- a/cgit.c +++ b/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")) -- cgit v1.2.3-59-g8ed1b