author | Lars Hjemli <hjemli@gmail.com> | 2009-08-11 08:09:06 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-08-24 08:22:57 (UTC) |
commit | 6f3bf1ae1eb1d4114a1df0194b2236665a13bdac (patch) (side-by-side diff) | |
tree | 29dd35a343ecb56844c7b8acffa6e89f5c153ee4 /cgit.c | |
parent | fb9bf55cde24bbb46568575fc65739a9226f8216 (diff) | |
download | cgit-6f3bf1ae1eb1d4114a1df0194b2236665a13bdac.zip cgit-6f3bf1ae1eb1d4114a1df0194b2236665a13bdac.tar.gz cgit-6f3bf1ae1eb1d4114a1df0194b2236665a13bdac.tar.bz2 |
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>
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -127,24 +127,26 @@ void config_cb(const char *name, const char *value) else if (!strcmp(name, "renamelimit")) ctx.cfg.renamelimit = atoi(value); else if (!strcmp(name, "robots")) ctx.cfg.robots = xstrdup(value); else if (!strcmp(name, "clone-prefix")) ctx.cfg.clone_prefix = xstrdup(value); else if (!strcmp(name, "local-time")) 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, "repo.scan")) + scan_tree(value); else if (!strcmp(name, "repo.url")) ctx.repo = cgit_add_repo(value); else if (!strcmp(name, "repo.name")) ctx.repo->name = xstrdup(value); else if (ctx.repo && !strcmp(name, "repo.path")) ctx.repo->path = trim_end(value, '/'); else if (ctx.repo && !strcmp(name, "repo.clone-url")) ctx.repo->clone_url = xstrdup(value); else if (ctx.repo && !strcmp(name, "repo.desc")) ctx.repo->desc = xstrdup(value); else if (ctx.repo && !strcmp(name, "repo.owner")) ctx.repo->owner = xstrdup(value); |