aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorChristian Hesse2019-02-26 17:08:31 +0100
committerChristian Hesse2019-06-25 21:40:59 +0200
commite1ad15d368bdeb1bffea588b93a29055c5dfb7f4 (patch)
tree8659155ec7bfd675237036a1093de23c0f78a021 /cmd.c
parent27a6d69ab38825602bdbd5a5d0161e465326ea8d (diff)
downloadcgit-e1ad15d368bdeb1bffea588b93a29055c5dfb7f4.tar.gz
cgit-e1ad15d368bdeb1bffea588b93a29055c5dfb7f4.tar.bz2
cgit-e1ad15d368bdeb1bffea588b93a29055c5dfb7f4.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 63f0ae5..bf6d8f5 100644
--- a/cmd.c
+++ b/cmd.c
@@ -66,7 +66,7 @@ static void about_fn(void)
66 66
67static void blame_fn(void) 67static void blame_fn(void)
68{ 68{
69 if (ctx.cfg.enable_blame) 69 if (ctx.repo->enable_blame)
70 cgit_print_blame(); 70 cgit_print_blame();
71 else 71 else
72 cgit_print_error_page(403, "Forbidden", "Blame is disabled"); 72 cgit_print_error_page(403, "Forbidden", "Blame is disabled");