|
diff --git a/cgit.c b/cgit.c index b3dd119..3943a0f 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -1,28 +1,30 @@ |
1 | /* cgit.c: cgi for the git scm |
1 | /* cgit.c: cgi for the git scm |
2 | * |
2 | * |
3 | * Copyright (C) 2006 Lars Hjemli |
3 | * Copyright (C) 2006 Lars Hjemli |
4 | * |
4 | * |
5 | * Licensed under GNU General Public License v2 |
5 | * Licensed under GNU General Public License v2 |
6 | * (see COPYING for full license text) |
6 | * (see COPYING for full license text) |
7 | */ |
7 | */ |
8 | |
8 | |
9 | #include "cgit.h" |
9 | #include "cgit.h" |
10 | #include "cmd.h" |
10 | #include "cmd.h" |
11 | #include "ui-shared.h" |
11 | #include "ui-shared.h" |
12 | |
12 | |
| |
13 | const char *cgit_version = CGIT_VERSION; |
| |
14 | |
13 | void config_cb(const char *name, const char *value) |
15 | void config_cb(const char *name, const char *value) |
14 | { |
16 | { |
15 | if (!strcmp(name, "root-title")) |
17 | if (!strcmp(name, "root-title")) |
16 | ctx.cfg.root_title = xstrdup(value); |
18 | ctx.cfg.root_title = xstrdup(value); |
17 | else if (!strcmp(name, "css")) |
19 | else if (!strcmp(name, "css")) |
18 | ctx.cfg.css = xstrdup(value); |
20 | ctx.cfg.css = xstrdup(value); |
19 | else if (!strcmp(name, "logo")) |
21 | else if (!strcmp(name, "logo")) |
20 | ctx.cfg.logo = xstrdup(value); |
22 | ctx.cfg.logo = xstrdup(value); |
21 | else if (!strcmp(name, "index-header")) |
23 | else if (!strcmp(name, "index-header")) |
22 | ctx.cfg.index_header = xstrdup(value); |
24 | ctx.cfg.index_header = xstrdup(value); |
23 | else if (!strcmp(name, "index-info")) |
25 | else if (!strcmp(name, "index-info")) |
24 | ctx.cfg.index_info = xstrdup(value); |
26 | ctx.cfg.index_info = xstrdup(value); |
25 | else if (!strcmp(name, "logo-link")) |
27 | else if (!strcmp(name, "logo-link")) |
26 | ctx.cfg.logo_link = xstrdup(value); |
28 | ctx.cfg.logo_link = xstrdup(value); |
27 | else if (!strcmp(name, "module-link")) |
29 | else if (!strcmp(name, "module-link")) |
28 | ctx.cfg.module_link = xstrdup(value); |
30 | ctx.cfg.module_link = xstrdup(value); |
|