Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-07-11 06:24:01 +0400
committerJason A. Donenfeld <Jason@zx2c4.com>2012-07-12 22:01:46 +0400
commitb56be4ba3a942dd1978fe4bfecd9afc35aab0027 (patch)
tree1f193f16b3b54e92d1a23a42ed3a9eced13acc0f /cgit.c
parent45555512ba63b823c6340875254563ea05737668 (diff)
scan-tree: Support gitweb.description.
Use gitweb.description instead of description file to determine description, if option is enabled.
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index b9b3a66..ec5bbce 100644
--- a/cgit.c
+++ b/cgit.c
@@ -163,6 +163,8 @@ void config_cb(const char *name, const char *value)
ctx.cfg.snapshots = cgit_parse_snapshots_mask(value);
else if (!strcmp(name, "enable-filter-overrides"))
ctx.cfg.enable_filter_overrides = atoi(value);
+ else if (!strcmp(name, "enable-gitweb-desc"))
+ ctx.cfg.enable_gitweb_desc = atoi(value);
else if (!strcmp(name, "enable-gitweb-owner"))
ctx.cfg.enable_gitweb_owner = atoi(value);
else if (!strcmp(name, "enable-http-clone"))
@@ -336,6 +338,7 @@ static void prepare_context(struct cgit_context *ctx)
ctx->cfg.css = "/cgit.css";
ctx->cfg.logo = "/cgit.png";
ctx->cfg.local_time = 0;
+ ctx->cfg.enable_gitweb_desc = 1;
ctx->cfg.enable_gitweb_owner = 1;
ctx->cfg.enable_http_clone = 1;
ctx->cfg.enable_tree_linenumbers = 1;