|
diff --git a/cgit.c b/cgit.c index 64d95f9..2aef44d 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -62,24 +62,26 @@ void config_cb(const char *name, const char *value) |
62 | else if (!strcmp(name, "cache-size")) |
62 | else if (!strcmp(name, "cache-size")) |
63 | ctx.cfg.cache_size = atoi(value); |
63 | ctx.cfg.cache_size = atoi(value); |
64 | else if (!strcmp(name, "cache-root")) |
64 | else if (!strcmp(name, "cache-root")) |
65 | ctx.cfg.cache_root = xstrdup(value); |
65 | ctx.cfg.cache_root = xstrdup(value); |
66 | else if (!strcmp(name, "cache-root-ttl")) |
66 | else if (!strcmp(name, "cache-root-ttl")) |
67 | ctx.cfg.cache_root_ttl = atoi(value); |
67 | ctx.cfg.cache_root_ttl = atoi(value); |
68 | else if (!strcmp(name, "cache-repo-ttl")) |
68 | else if (!strcmp(name, "cache-repo-ttl")) |
69 | ctx.cfg.cache_repo_ttl = atoi(value); |
69 | ctx.cfg.cache_repo_ttl = atoi(value); |
70 | else if (!strcmp(name, "cache-static-ttl")) |
70 | else if (!strcmp(name, "cache-static-ttl")) |
71 | ctx.cfg.cache_static_ttl = atoi(value); |
71 | ctx.cfg.cache_static_ttl = atoi(value); |
72 | else if (!strcmp(name, "cache-dynamic-ttl")) |
72 | else if (!strcmp(name, "cache-dynamic-ttl")) |
73 | ctx.cfg.cache_dynamic_ttl = atoi(value); |
73 | ctx.cfg.cache_dynamic_ttl = atoi(value); |
| |
74 | else if (!strcmp(name, "embedded")) |
| |
75 | ctx.cfg.embedded = atoi(value); |
74 | else if (!strcmp(name, "max-message-length")) |
76 | else if (!strcmp(name, "max-message-length")) |
75 | ctx.cfg.max_msg_len = atoi(value); |
77 | ctx.cfg.max_msg_len = atoi(value); |
76 | else if (!strcmp(name, "max-repodesc-length")) |
78 | else if (!strcmp(name, "max-repodesc-length")) |
77 | ctx.cfg.max_repodesc_len = atoi(value); |
79 | ctx.cfg.max_repodesc_len = atoi(value); |
78 | else if (!strcmp(name, "max-repo-count")) |
80 | else if (!strcmp(name, "max-repo-count")) |
79 | ctx.cfg.max_repo_count = atoi(value); |
81 | ctx.cfg.max_repo_count = atoi(value); |
80 | else if (!strcmp(name, "max-commit-count")) |
82 | else if (!strcmp(name, "max-commit-count")) |
81 | ctx.cfg.max_commit_count = atoi(value); |
83 | ctx.cfg.max_commit_count = atoi(value); |
82 | else if (!strcmp(name, "summary-log")) |
84 | else if (!strcmp(name, "summary-log")) |
83 | ctx.cfg.summary_log = atoi(value); |
85 | ctx.cfg.summary_log = atoi(value); |
84 | else if (!strcmp(name, "summary-branches")) |
86 | else if (!strcmp(name, "summary-branches")) |
85 | ctx.cfg.summary_branches = atoi(value); |
87 | ctx.cfg.summary_branches = atoi(value); |
|