From 579efd9fcc01e92278f8a2a42a39c52aa6a900a1 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Tue, 27 Oct 2026 18:35:45 -1000 Subject: Offer the versions as an option enable-version-info brings back the cgit and git versions that 872bd7c took off the footer and the generator tag, for a site that wants them, and the version f7d2b83 put on the signature of patches now follows it too. It stays off by default for the reason 872bd7c gave. --- source/ui-shared.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source/ui-shared.c') diff --git a/source/ui-shared.c b/source/ui-shared.c index 8da9878..936a6a4 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -1558,7 +1558,10 @@ void cgit_print_docstart(void) html_attr(ctx.cfg.root_desc); html("'>\n"); } - html("\n"); + if (ctx.cfg.enable_version_info) + htmlf("\n", cgit_version); + else + html("\n"); if (ctx.cfg.robots && *ctx.cfg.robots) { html("generated by " + "cgit %s " + "(git %s)\n", + cgit_version, git_version_string); else html("\n"); html("\n"); -- cgit 2.12.1