|
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; |
23 | char *cgit_script_name = CGIT_SCRIPT_NAME; |
23 | char *cgit_script_name = CGIT_SCRIPT_NAME; |
24 | char *cgit_cache_root = "/var/cache/cgit"; |
24 | char *cgit_cache_root = "/var/cache/cgit"; |
25 | char *cgit_repo_group = NULL; |
25 | char *cgit_repo_group = NULL; |
26 | |
26 | |
27 | int cgit_nocache = 0; |
27 | int cgit_nocache = 0; |
28 | int cgit_snapshots = 0; |
28 | int cgit_snapshots = 0; |
| |
29 | int cgit_enable_index_links = 0; |
29 | int cgit_enable_log_filecount = 0; |
30 | int cgit_enable_log_filecount = 0; |
30 | int cgit_enable_log_linecount = 0; |
31 | int cgit_enable_log_linecount = 0; |
31 | int cgit_max_lock_attempts = 5; |
32 | int cgit_max_lock_attempts = 5; |
32 | int cgit_cache_root_ttl = 5; |
33 | int cgit_cache_root_ttl = 5; |
33 | int cgit_cache_repo_ttl = 5; |
34 | int cgit_cache_repo_ttl = 5; |
34 | int cgit_cache_dynamic_ttl = 5; |
35 | int 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); |
|