diff options
author | Lars Hjemli <hjemli@gmail.com> | 2009-08-23 19:35:56 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-08-24 10:22:58 +0200 |
commit | 00466376922e2f7db02b3c335d46af5eb8991c49 (patch) | |
tree | 717c6770e8a6937d5c7ad38b014d6aa0c2028e11 /cgit.c | |
parent | b4dc93dc76fabf043b7679f8fcab91cdb1f418c6 (diff) | |
download | cgit-00466376922e2f7db02b3c335d46af5eb8991c49.tar.gz cgit-00466376922e2f7db02b3c335d46af5eb8991c49.tar.bz2 cgit-00466376922e2f7db02b3c335d46af5eb8991c49.zip |
Rename 'repo.scan' to 'scan-path'
The 'repo.' prefix will soon be reserved for repo-specific config
options.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | cgit.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -118,6 +118,11 @@ void config_cb(const char *name, const char *value) ctx.cfg.max_repo_count = atoi(value); else if (!strcmp(name, "max-commit-count")) ctx.cfg.max_commit_count = atoi(value); + else if (!strcmp(name, "scan-path")) + if (!ctx.cfg.nocache && ctx.cfg.cache_size) + process_cached_repolist(value); + else + scan_tree(value); else if (!strcmp(name, "source-filter")) ctx.cfg.source_filter = new_filter(value, 1); else if (!strcmp(name, "summary-log")) @@ -140,11 +145,6 @@ 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")) - if (!ctx.cfg.nocache && ctx.cfg.cache_size) - process_cached_repolist(value); - else - scan_tree(value); else if (!strcmp(name, "repo.url")) ctx.repo = cgit_add_repo(value); else if (!strcmp(name, "repo.name")) |