aboutsummaryrefslogtreecommitdiff
path: root/ui-shared.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2026-02-24 11:48:54 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2026-02-24 11:49:35 +0100
commit0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76 (patch)
treeec8517157a5f04a1c2cd5a49d9eeb4c3af90f63b /ui-shared.c
parent61ef851ef52c3094d12fefad3576262606fddd27 (diff)
downloadcgit-0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76.tar.xz
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 <Jason@zx2c4.com>
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c2
1 files changed, 1 insertions, 1 deletions
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("<div class='path'>");
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",