]> granicus.if.org Git - cgit/commitdiff
cgit.c: add support for cgitrc option 'repo.scan'
authorLars Hjemli <hjemli@gmail.com>
Tue, 11 Aug 2009 08:09:06 +0000 (10:09 +0200)
committerLars Hjemli <hjemli@gmail.com>
Mon, 24 Aug 2009 08:22:57 +0000 (10:22 +0200)
When specified, the specified path will be scanned for repositories.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.c

diff --git a/cgit.c b/cgit.c
index b0e1c44366cda6e9af2951561e092cba91959b14..97f5e085512b0409bb1bc7af016d4ff7c05ea0be 100644 (file)
--- 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"))