+ else if (!strcmp(name, "nocache"))
+ cgit_nocache = atoi(value);
+ else if (!strcmp(name, "snapshots"))
+ cgit_snapshots = atoi(value);
+ else if (!strcmp(name, "enable-log-filecount"))
+ cgit_enable_log_filecount = atoi(value);
+ else if (!strcmp(name, "enable-log-linecount"))
+ cgit_enable_log_linecount = atoi(value);
+ else if (!strcmp(name, "cache-root"))
+ cgit_cache_root = xstrdup(value);
+ else if (!strcmp(name, "cache-root-ttl"))
+ cgit_cache_root_ttl = atoi(value);
+ else if (!strcmp(name, "cache-repo-ttl"))
+ cgit_cache_repo_ttl = atoi(value);
+ else if (!strcmp(name, "cache-static-ttl"))
+ cgit_cache_static_ttl = atoi(value);
+ else if (!strcmp(name, "cache-dynamic-ttl"))
+ cgit_cache_dynamic_ttl = atoi(value);
+ else if (!strcmp(name, "max-message-length"))
+ cgit_max_msg_len = atoi(value);
+ else if (!strcmp(name, "max-repodesc-length"))
+ cgit_max_repodesc_len = atoi(value);
+ else if (!strcmp(name, "max-commit-count"))
+ cgit_max_commit_count = atoi(value);
+ else if (!strcmp(name, "summary-log"))
+ cgit_summary_log = atoi(value);
+ else if (!strcmp(name, "agefile"))
+ cgit_agefile = xstrdup(value);
+ else if (!strcmp(name, "repo.group"))
+ cgit_repo_group = xstrdup(value);
+ else if (!strcmp(name, "repo.url"))
+ cgit_repo = add_repo(value);
+ else if (!strcmp(name, "repo.name"))
+ cgit_repo->name = xstrdup(value);
+ else if (cgit_repo && !strcmp(name, "repo.path"))
+ cgit_repo->path = xstrdup(value);
+ else if (cgit_repo && !strcmp(name, "repo.desc"))
+ cgit_repo->desc = xstrdup(value);
+ else if (cgit_repo && !strcmp(name, "repo.owner"))
+ cgit_repo->owner = xstrdup(value);
+ else if (cgit_repo && !strcmp(name, "repo.defbranch"))
+ cgit_repo->defbranch = xstrdup(value);
+ else if (cgit_repo && !strcmp(name, "repo.snapshots"))
+ cgit_repo->snapshots = cgit_snapshots * atoi(value);
+ else if (cgit_repo && !strcmp(name, "repo.enable-log-filecount"))
+ cgit_repo->enable_log_filecount = cgit_enable_log_filecount * atoi(value);
+ else if (cgit_repo && !strcmp(name, "repo.enable-log-linecount"))
+ cgit_repo->enable_log_linecount = cgit_enable_log_linecount * atoi(value);
+ else if (cgit_repo && !strcmp(name, "repo.module-link"))
+ cgit_repo->module_link= xstrdup(value);
+ else if (cgit_repo && !strcmp(name, "repo.readme") && value != NULL) {
+ if (*value == '/')
+ cgit_repo->readme = xstrdup(value);
+ else
+ cgit_repo->readme = xstrdup(fmt("%s/%s", cgit_repo->path, value));
+ } else if (!strcmp(name, "include"))
+ cgit_read_config(value, cgit_global_config_cb);