|
diff --git a/cgit.c b/cgit.c index f9a42bb..eff5b7a 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -132,12 +132,14 @@ void config_cb(const char *name, const char *value) |
132 | else if (!strcmp(name, "noheader")) |
132 | else if (!strcmp(name, "noheader")) |
133 | ctx.cfg.noheader = atoi(value); |
133 | ctx.cfg.noheader = atoi(value); |
134 | else if (!strcmp(name, "snapshots")) |
134 | else if (!strcmp(name, "snapshots")) |
135 | ctx.cfg.snapshots = cgit_parse_snapshots_mask(value); |
135 | ctx.cfg.snapshots = cgit_parse_snapshots_mask(value); |
136 | else if (!strcmp(name, "enable-filter-overrides")) |
136 | else if (!strcmp(name, "enable-filter-overrides")) |
137 | ctx.cfg.enable_filter_overrides = atoi(value); |
137 | ctx.cfg.enable_filter_overrides = atoi(value); |
| |
138 | else if (!strcmp(name, "enable-gitweb-owner")) |
| |
139 | ctx.cfg.enable_gitweb_owner = atoi(value); |
138 | else if (!strcmp(name, "enable-index-links")) |
140 | else if (!strcmp(name, "enable-index-links")) |
139 | ctx.cfg.enable_index_links = atoi(value); |
141 | ctx.cfg.enable_index_links = atoi(value); |
140 | else if (!strcmp(name, "enable-log-filecount")) |
142 | else if (!strcmp(name, "enable-log-filecount")) |
141 | ctx.cfg.enable_log_filecount = atoi(value); |
143 | ctx.cfg.enable_log_filecount = atoi(value); |
142 | else if (!strcmp(name, "enable-log-linecount")) |
144 | else if (!strcmp(name, "enable-log-linecount")) |
143 | ctx.cfg.enable_log_linecount = atoi(value); |
145 | ctx.cfg.enable_log_linecount = atoi(value); |
@@ -290,12 +292,13 @@ static void prepare_context(struct cgit_context *ctx) |
290 | ctx->cfg.cache_root_ttl = 5; |
292 | ctx->cfg.cache_root_ttl = 5; |
291 | ctx->cfg.cache_scanrc_ttl = 15; |
293 | ctx->cfg.cache_scanrc_ttl = 15; |
292 | ctx->cfg.cache_static_ttl = -1; |
294 | ctx->cfg.cache_static_ttl = -1; |
293 | ctx->cfg.css = "/cgit.css"; |
295 | ctx->cfg.css = "/cgit.css"; |
294 | ctx->cfg.logo = "/cgit.png"; |
296 | ctx->cfg.logo = "/cgit.png"; |
295 | ctx->cfg.local_time = 0; |
297 | ctx->cfg.local_time = 0; |
| |
298 | ctx->cfg.enable_gitweb_owner = 1; |
296 | ctx->cfg.enable_tree_linenumbers = 1; |
299 | ctx->cfg.enable_tree_linenumbers = 1; |
297 | ctx->cfg.max_repo_count = 50; |
300 | ctx->cfg.max_repo_count = 50; |
298 | ctx->cfg.max_commit_count = 50; |
301 | ctx->cfg.max_commit_count = 50; |
299 | ctx->cfg.max_lock_attempts = 5; |
302 | ctx->cfg.max_lock_attempts = 5; |
300 | ctx->cfg.max_msg_len = 80; |
303 | ctx->cfg.max_msg_len = 80; |
301 | ctx->cfg.max_repodesc_len = 80; |
304 | ctx->cfg.max_repodesc_len = 80; |
|