mirror of
https://git.zx2c4.com/cgit
synced 2025-07-22 11:54:23 +02:00
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>
This commit is contained in:
parent
27a6d69ab3
commit
e1ad15d368
6 changed files with 13 additions and 3 deletions
2
cmd.c
2
cmd.c
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue