Website Summary Files Commits Branches @commit @diff @stats
path: root / shared.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 /shared.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, 0 deletions
-rw-r--r--shared.c1
diff --git a/shared.c b/shared.c
index 07b38ba..cec2c81 100644
--- a/shared.c
+++ b/shared.c
@@ -62,6 +62,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
ret->snapshots = ctx.cfg.snapshots;
ret->enable_blame = ctx.cfg.enable_blame;
ret->enable_commit_graph = ctx.cfg.enable_commit_graph;
+ ret->enable_follow_links = ctx.cfg.enable_follow_links;
ret->enable_log_filecount = ctx.cfg.enable_log_filecount;
ret->enable_log_linecount = ctx.cfg.enable_log_linecount;
ret->enable_remote_branches = ctx.cfg.enable_remote_branches;