|
diff --git a/shared.c b/shared.c index 6b5cfc2..5f2a5ce 100644 --- a/ shared.c+++ b/ shared.c |
|
@@ -1,24 +1,32 @@ |
| |
1 | /* shared.c: global vars + some callback functions |
| |
2 | * |
| |
3 | * Copyright (C) 2006 Lars Hjemli |
| |
4 | * |
| |
5 | * Licensed under GNU General Public License v2 |
| |
6 | * (see COPYING for full license text) |
| |
7 | */ |
| |
8 | |
1 | #include "cgit.h" |
9 | #include "cgit.h" |
2 | |
10 | |
3 | char *cgit_root = "/usr/src/git"; |
11 | char *cgit_root = "/usr/src/git"; |
4 | char *cgit_root_title = "Git repository browser"; |
12 | char *cgit_root_title = "Git repository browser"; |
5 | char *cgit_css = "/cgit.css"; |
13 | char *cgit_css = "/cgit.css"; |
6 | char *cgit_logo = "/git-logo.png"; |
14 | char *cgit_logo = "/git-logo.png"; |
7 | char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/"; |
15 | char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/"; |
8 | char *cgit_virtual_root = NULL; |
16 | char *cgit_virtual_root = NULL; |
9 | |
17 | |
10 | char *cgit_cache_root = "/var/cache/cgit"; |
18 | char *cgit_cache_root = "/var/cache/cgit"; |
11 | |
19 | |
12 | int cgit_max_lock_attempts = 5; |
20 | int cgit_max_lock_attempts = 5; |
13 | int cgit_cache_root_ttl = 5; |
21 | int cgit_cache_root_ttl = 5; |
14 | int cgit_cache_repo_ttl = 5; |
22 | int cgit_cache_repo_ttl = 5; |
15 | int cgit_cache_dynamic_ttl = 5; |
23 | int cgit_cache_dynamic_ttl = 5; |
16 | int cgit_cache_static_ttl = -1; |
24 | int cgit_cache_static_ttl = -1; |
17 | int cgit_cache_max_create_time = 5; |
25 | int cgit_cache_max_create_time = 5; |
18 | |
26 | |
19 | char *cgit_repo_name = NULL; |
27 | char *cgit_repo_name = NULL; |
20 | char *cgit_repo_desc = NULL; |
28 | char *cgit_repo_desc = NULL; |
21 | char *cgit_repo_owner = NULL; |
29 | char *cgit_repo_owner = NULL; |
22 | |
30 | |
23 | int cgit_query_has_symref = 0; |
31 | int cgit_query_has_symref = 0; |
24 | int cgit_query_has_sha1 = 0; |
32 | int cgit_query_has_sha1 = 0; |
|