scan-tree: Support gitweb.category.

Use gitweb.category from git config to determine repo's section, if
option is enabled.
此提交包含在:
Jason A. Donenfeld
2012-07-11 05:32:45 +02:00
父節點 b56be4ba3a
當前提交 fc9181ff3d
共有 4 個檔案被更改,包括 14 行新增0 行删除

1
cgit.c
查看文件

@@ -340,6 +340,7 @@ static void prepare_context(struct cgit_context *ctx)
ctx->cfg.local_time = 0;
ctx->cfg.enable_gitweb_desc = 1;
ctx->cfg.enable_gitweb_owner = 1;
ctx->cfg.enable_gitweb_section = 1;
ctx->cfg.enable_http_clone = 1;
ctx->cfg.enable_tree_linenumbers = 1;
ctx->cfg.max_repo_count = 50;