From 69c9551d2ebf2b09484aef68210e3d002bf6b2f2 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 23 Aug 2026 19:39:57 -1000 Subject: Resolve submodule links from .gitmodules --- source/cgit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/cgit.c') diff --git a/source/cgit.c b/source/cgit.c index 37b07d7..90ee702 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -237,6 +237,7 @@ static void print_repo(FILE *f, struct cgit_repo *repo) fprintf(f, "repo.enable-blame=%d\n", 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-gitmodules-links=%d\n", repo->enable_gitmodules_links); fprintf(f, "repo.enable-log-filecount=%d\n", repo->enable_log_filecount); fprintf(f, "repo.enable-log-linecount=%d\n", repo->enable_log_linecount); if (repo->about_filter && repo->about_filter != ctx.cfg.about_filter) @@ -560,6 +561,8 @@ static void apply_config(const char *name, const char *value) ctx.cfg.enable_blame = atoi(value); else if (!strcmp(name, "enable-commit-graph")) ctx.cfg.enable_commit_graph = atoi(value); + else if (!strcmp(name, "enable-gitmodules-links")) + ctx.cfg.enable_gitmodules_links = atoi(value); else if (!strcmp(name, "enable-log-filecount")) ctx.cfg.enable_log_filecount = atoi(value); else if (!strcmp(name, "enable-log-linecount")) @@ -1176,6 +1179,8 @@ void cgit_repo_config(struct cgit_repo *repo, const char *name, const char *valu repo->enable_commit_graph = atoi(value); else if (!strcmp(name, "enable-follow-links")) repo->enable_follow_links = atoi(value); + else if (!strcmp(name, "enable-gitmodules-links")) + repo->enable_gitmodules_links = atoi(value); else if (!strcmp(name, "enable-log-filecount")) repo->enable_log_filecount = atoi(value); else if (!strcmp(name, "enable-log-linecount")) -- cgit 2.12.1