Website Summary Files Commits Branches @commit @diff @stats
path: root / ui-log.c
diff options
context:
space:
mode:
Commit0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76 (patch)
Author
 Jason A. Donenfeld <Jason@zx2c4.com>
2026-02-24 11:48:54 +0100
Committer
 Jason A. Donenfeld <Jason@zx2c4.com>
2026-02-24 11:49:35 +0100
Filesec8517157a5f04a1c2cd5a49d9eeb4c3af90f63b /ui-log.c
cgit-0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76.tar
cgit-0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76.tar.gz
cgit-0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76.zip
Parent61ef851ef52c3094d12fefad3576262606fddd27 (diff)
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>
1 files changed, 1 insertions, 1 deletions
-rw-r--r--ui-log.c2
diff --git a/ui-log.c b/ui-log.c
index c7b3b3f..9906bbc 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -407,7 +407,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
}
}
- if (!path || !ctx.cfg.enable_follow_links) {
+ if (!path || !ctx.repo->enable_follow_links) {
/*
* If we don't have a path, "follow" is a no-op so make sure
* the variable is set to false to avoid needing to check