From 9334b379addd713690225c5e496c5aa2aa8c92fe Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:10:59 -0700 Subject: Say which versions enable-version-info names Only the footer carries the git version. The reason the versions stay out by default is left to MANUAL, which already gives it. --- MANUAL.txt | 4 ++-- custom/cgitrc | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/MANUAL.txt b/MANUAL.txt index 10592cd..4eb8d19 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -293,8 +293,8 @@ enable-tree-linenumbers:: enable-version-info:: Flag which, when set to "1", names the cgit and git versions in the - standard page footer and the generator meta tag, and the cgit version - in the signature that ends each patch. Exact versions help someone + standard page footer, and the cgit version in the generator meta tag + and in the signature that ends each patch. Exact versions help someone match a site against published advisories, so they are left out unless a site asks for them, and a footer set with footer replaces the standard one either way. Default value: "0". diff --git a/custom/cgitrc b/custom/cgitrc index 23e3072..282799e 100644 --- a/custom/cgitrc +++ b/custom/cgitrc @@ -237,10 +237,9 @@ enable-html-serving=0 # Values are 0 or 1. Default is 1. enable-tree-linenumbers=1 -# Name the cgit and git versions in the page footer, the generator tag and -# the signature of patches. Exact versions help someone match a site against -# advisories, so they stay out unless asked for. Values are 0 or 1. Default -# is 0. +# Name the cgit version in the page footer, the generator tag and patch +# signatures, and the git version in the footer. Values are 0 or 1. +# Default is 0. enable-version-info=0 # List directories first, then files, in the tree page. Values are 0 or 1. -- cgit