aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-07-11 05:32:45 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-07-12 20:01:46 +0200
commitfc9181ff3d3ebbe0159871f6a49438e60bb17f58 (patch)
treea2b619e91112c9e8aaf03623a20f8e5c1aa36797 /cgit.c
parentscan-tree: Support gitweb.description. (diff)
downloadcgit-fc9181ff3d3ebbe0159871f6a49438e60bb17f58.tar.xz
cgit-fc9181ff3d3ebbe0159871f6a49438e60bb17f58.zip
scan-tree: Support gitweb.category.
Use gitweb.category from git config to determine repo's section, if option is enabled.
Diffstat (limited to '')
-rw-r--r--cgit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index ec5bbce..4656ed6 100644
--- a/cgit.c
+++ b/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;