From 0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 24 Feb 2026 11:48:54 +0100 Subject: ui-log: allow link following to be disabled per-repo This exists for other CPU heavy operations like blame, but doesn't for the follow functionality. Add it for that. Signed-off-by: Jason A. Donenfeld --- ui-shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index 7f2d566..219b830 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -1153,7 +1153,7 @@ void cgit_print_pageheader(void) html("
"); html("path: "); cgit_print_path_crumbs(ctx.qry.vpath); - if (ctx.cfg.enable_follow_links && !strcmp(ctx.qry.page, "log")) { + if (ctx.repo->enable_follow_links && !strcmp(ctx.qry.page, "log")) { html(" ("); ctx.qry.follow = !ctx.qry.follow; cgit_self_link(ctx.qry.follow ? "follow" : "unfollow", -- cgit v1.3