diff options
author | Christian Hesse <mail@eworm.de> | 2019-02-26 19:08:31 +0300 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-06-25 22:40:59 +0300 |
commit | e1ad15d368bdeb1bffea588b93a29055c5dfb7f4 (patch) | |
tree | 8659155ec7bfd675237036a1093de23c0f78a021 /cmd.c | |
parent | 27a6d69ab38825602bdbd5a5d0161e465326ea8d (diff) |
ui-tree: allow per repository override for enable-blame
The blame operation can cause high cost in terms of CPU load for huge
repositories. Let's add a per repository override for enable-blame.
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ static void about_fn(void) static void blame_fn(void) { - if (ctx.cfg.enable_blame) + if (ctx.repo->enable_blame) cgit_print_blame(); else cgit_print_error_page(403, "Forbidden", "Blame is disabled"); |