summaryrefslogtreecommitdiffabout
path: root/shared.c
Unidiff
Diffstat (limited to 'shared.c') (more/less context) (show whitespace changes)
-rw-r--r--shared.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index f20fb5c..ab00bc9 100644
--- a/shared.c
+++ b/shared.c
@@ -23,12 +23,13 @@ char *cgit_virtual_root = NULL;
23char *cgit_script_name = CGIT_SCRIPT_NAME; 23char *cgit_script_name = CGIT_SCRIPT_NAME;
24char *cgit_cache_root = "/var/cache/cgit"; 24char *cgit_cache_root = "/var/cache/cgit";
25char *cgit_repo_group = NULL; 25char *cgit_repo_group = NULL;
26 26
27int cgit_nocache = 0; 27int cgit_nocache = 0;
28int cgit_snapshots = 0; 28int cgit_snapshots = 0;
29int cgit_enable_index_links = 0;
29int cgit_enable_log_filecount = 0; 30int cgit_enable_log_filecount = 0;
30int cgit_enable_log_linecount = 0; 31int cgit_enable_log_linecount = 0;
31int cgit_max_lock_attempts = 5; 32int cgit_max_lock_attempts = 5;
32int cgit_cache_root_ttl = 5; 33int cgit_cache_root_ttl = 5;
33int cgit_cache_repo_ttl = 5; 34int cgit_cache_repo_ttl = 5;
34int cgit_cache_dynamic_ttl = 5; 35int cgit_cache_dynamic_ttl = 5;
@@ -143,12 +144,14 @@ void cgit_global_config_cb(const char *name, const char *value)
143 else if (!strcmp(name, "virtual-root")) 144 else if (!strcmp(name, "virtual-root"))
144 cgit_virtual_root = xstrdup(value); 145 cgit_virtual_root = xstrdup(value);
145 else if (!strcmp(name, "nocache")) 146 else if (!strcmp(name, "nocache"))
146 cgit_nocache = atoi(value); 147 cgit_nocache = atoi(value);
147 else if (!strcmp(name, "snapshots")) 148 else if (!strcmp(name, "snapshots"))
148 cgit_snapshots = atoi(value); 149 cgit_snapshots = atoi(value);
150 else if (!strcmp(name, "enable-index-links"))
151 cgit_enable_index_links = atoi(value);
149 else if (!strcmp(name, "enable-log-filecount")) 152 else if (!strcmp(name, "enable-log-filecount"))
150 cgit_enable_log_filecount = atoi(value); 153 cgit_enable_log_filecount = atoi(value);
151 else if (!strcmp(name, "enable-log-linecount")) 154 else if (!strcmp(name, "enable-log-linecount"))
152 cgit_enable_log_linecount = atoi(value); 155 cgit_enable_log_linecount = atoi(value);
153 else if (!strcmp(name, "cache-root")) 156 else if (!strcmp(name, "cache-root"))
154 cgit_cache_root = xstrdup(value); 157 cgit_cache_root = xstrdup(value);