From 82d14f4843c469647000520deb71e0864703044b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:51:13 -0700 Subject: Correct what a negative section-from-path drops section_slash counts the repository's own directory as the first element back from the end, so "-1" takes nothing above it away. --- MANUAL.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MANUAL.txt b/MANUAL.txt index d67351b..e3da45f 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -485,8 +485,9 @@ section:: section-from-path:: A number which, if defined prior to scan-path, specifies how many path elements from each repository path to use as a default section name. If - negative, cgit discards the specified number of path elements above the - repository directory. Default value: "0". + negative, cgit instead drops that many path elements from the end, the + repository directory included, so "-1" uses every directory above the + repository. Default value: "0". section-sort:: Flag which, when set to "1", sorts the sections on the repository -- cgit