summaryrefslogtreecommitdiffabout
path: root/shared.c
Unidiff
Diffstat (limited to 'shared.c') (more/less context) (ignore whitespace changes)
-rw-r--r--shared.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index d815cb1..7e5eaba 100644
--- a/shared.c
+++ b/shared.c
@@ -29,24 +29,25 @@ char *cgit_repo_group = NULL;
29int cgit_nocache = 0; 29int cgit_nocache = 0;
30int cgit_snapshots = 0; 30int cgit_snapshots = 0;
31int cgit_enable_index_links = 0; 31int cgit_enable_index_links = 0;
32int cgit_enable_log_filecount = 0; 32int cgit_enable_log_filecount = 0;
33int cgit_enable_log_linecount = 0; 33int cgit_enable_log_linecount = 0;
34int cgit_max_lock_attempts = 5; 34int cgit_max_lock_attempts = 5;
35int cgit_cache_root_ttl = 5; 35int cgit_cache_root_ttl = 5;
36int cgit_cache_repo_ttl = 5; 36int cgit_cache_repo_ttl = 5;
37int cgit_cache_dynamic_ttl = 5; 37int cgit_cache_dynamic_ttl = 5;
38int cgit_cache_static_ttl = -1; 38int cgit_cache_static_ttl = -1;
39int cgit_cache_max_create_time = 5; 39int cgit_cache_max_create_time = 5;
40int cgit_summary_log = 0; 40int cgit_summary_log = 0;
41int cgit_summary_tags = 0;
41int cgit_renamelimit = -1; 42int cgit_renamelimit = -1;
42 43
43int cgit_max_msg_len = 60; 44int cgit_max_msg_len = 60;
44int cgit_max_repodesc_len = 60; 45int cgit_max_repodesc_len = 60;
45int cgit_max_commit_count = 50; 46int cgit_max_commit_count = 50;
46 47
47int cgit_query_has_symref = 0; 48int cgit_query_has_symref = 0;
48int cgit_query_has_sha1 = 0; 49int cgit_query_has_sha1 = 0;
49 50
50char *cgit_querystring = NULL; 51char *cgit_querystring = NULL;
51char *cgit_query_repo = NULL; 52char *cgit_query_repo = NULL;
52char *cgit_query_page = NULL; 53char *cgit_query_page = NULL;
@@ -172,24 +173,26 @@ void cgit_global_config_cb(const char *name, const char *value)
172 else if (!strcmp(name, "cache-static-ttl")) 173 else if (!strcmp(name, "cache-static-ttl"))
173 cgit_cache_static_ttl = atoi(value); 174 cgit_cache_static_ttl = atoi(value);
174 else if (!strcmp(name, "cache-dynamic-ttl")) 175 else if (!strcmp(name, "cache-dynamic-ttl"))
175 cgit_cache_dynamic_ttl = atoi(value); 176 cgit_cache_dynamic_ttl = atoi(value);
176 else if (!strcmp(name, "max-message-length")) 177 else if (!strcmp(name, "max-message-length"))
177 cgit_max_msg_len = atoi(value); 178 cgit_max_msg_len = atoi(value);
178 else if (!strcmp(name, "max-repodesc-length")) 179 else if (!strcmp(name, "max-repodesc-length"))
179 cgit_max_repodesc_len = atoi(value); 180 cgit_max_repodesc_len = atoi(value);
180 else if (!strcmp(name, "max-commit-count")) 181 else if (!strcmp(name, "max-commit-count"))
181 cgit_max_commit_count = atoi(value); 182 cgit_max_commit_count = atoi(value);
182 else if (!strcmp(name, "summary-log")) 183 else if (!strcmp(name, "summary-log"))
183 cgit_summary_log = atoi(value); 184 cgit_summary_log = atoi(value);
185 else if (!strcmp(name, "summary-tags"))
186 cgit_summary_tags = atoi(value);
184 else if (!strcmp(name, "agefile")) 187 else if (!strcmp(name, "agefile"))
185 cgit_agefile = xstrdup(value); 188 cgit_agefile = xstrdup(value);
186 else if (!strcmp(name, "renamelimit")) 189 else if (!strcmp(name, "renamelimit"))
187 cgit_renamelimit = atoi(value); 190 cgit_renamelimit = atoi(value);
188 else if (!strcmp(name, "repo.group")) 191 else if (!strcmp(name, "repo.group"))
189 cgit_repo_group = xstrdup(value); 192 cgit_repo_group = xstrdup(value);
190 else if (!strcmp(name, "repo.url")) 193 else if (!strcmp(name, "repo.url"))
191 cgit_repo = add_repo(value); 194 cgit_repo = add_repo(value);
192 else if (!strcmp(name, "repo.name")) 195 else if (!strcmp(name, "repo.name"))
193 cgit_repo->name = xstrdup(value); 196 cgit_repo->name = xstrdup(value);
194 else if (cgit_repo && !strcmp(name, "repo.path")) 197 else if (cgit_repo && !strcmp(name, "repo.path"))
195 cgit_repo->path = trim_end(value, '/'); 198 cgit_repo->path = trim_end(value, '/');