mirror of
https://git.zx2c4.com/cgit
synced 2025-08-29 06:08:24 +02:00
scan-tree: Support gitweb.description.
Use gitweb.description instead of description file to determine description, if option is enabled.
This commit is contained in:
parent
45555512ba
commit
b56be4ba3a
4 changed files with 28 additions and 7 deletions
3
cgit.c
3
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue