|
diff --git a/cgit.c b/cgit.c index f749b6b..73b1f02 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -1,25 +1,26 @@ |
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 "cache.h" |
10 | #include "cmd.h" |
11 | #include "cmd.h" |
11 | #include "ui-shared.h" |
12 | #include "ui-shared.h" |
12 | |
13 | |
13 | const char *cgit_version = CGIT_VERSION; |
14 | const char *cgit_version = CGIT_VERSION; |
14 | |
15 | |
15 | void config_cb(const char *name, const char *value) |
16 | void config_cb(const char *name, const char *value) |
16 | { |
17 | { |
17 | if (!strcmp(name, "root-title")) |
18 | if (!strcmp(name, "root-title")) |
18 | ctx.cfg.root_title = xstrdup(value); |
19 | ctx.cfg.root_title = xstrdup(value); |
19 | else if (!strcmp(name, "css")) |
20 | else if (!strcmp(name, "css")) |
20 | ctx.cfg.css = xstrdup(value); |
21 | ctx.cfg.css = xstrdup(value); |
21 | else if (!strcmp(name, "logo")) |
22 | else if (!strcmp(name, "logo")) |
22 | ctx.cfg.logo = xstrdup(value); |
23 | ctx.cfg.logo = xstrdup(value); |
23 | else if (!strcmp(name, "index-header")) |
24 | else if (!strcmp(name, "index-header")) |
24 | ctx.cfg.index_header = xstrdup(value); |
25 | ctx.cfg.index_header = xstrdup(value); |
25 | else if (!strcmp(name, "index-info")) |
26 | else if (!strcmp(name, "index-info")) |
|