diff options
| author | 2026-02-24 11:48:54 +0100 | |
|---|---|---|
| committer | 2026-02-24 11:49:35 +0100 | |
| commit | 0d28d54f0a287ee3e5a12d14ffd2ee23b5e22d76 (patch) | |
| tree | ec8517157a5f04a1c2cd5a49d9eeb4c3af90f63b /cgit.c | |
| parent | Bump version (diff) | |
| download | cgit-master.tar.xz cgit-master.zip | |
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 '')
| -rw-r--r-- | cgit.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -66,6 +66,8 @@ static void repo_config(struct cgit_repo *repo, const char *name, const char *va repo->enable_blame = atoi(value); else if (!strcmp(name, "enable-commit-graph")) repo->enable_commit_graph = atoi(value); + else if (!strcmp(name, "enable-follow-links")) + repo->enable_follow_links = atoi(value); else if (!strcmp(name, "enable-log-filecount")) repo->enable_log_filecount = atoi(value); else if (!strcmp(name, "enable-log-linecount")) @@ -828,6 +830,8 @@ static void print_repo(FILE *f, struct cgit_repo *repo) repo->enable_blame); fprintf(f, "repo.enable-commit-graph=%d\n", repo->enable_commit_graph); + fprintf(f, "repo.enable-follow-links=%d\n", + repo->enable_follow_links); fprintf(f, "repo.enable-log-filecount=%d\n", repo->enable_log_filecount); fprintf(f, "repo.enable-log-linecount=%d\n", |
