From d000cf27eca3ef626ab5e4980ad559f8b7a005b7 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 5 Nov 2026 23:01:28 -1000 Subject: Say where the commit-filter applies --- MANUAL.txt | 7 +++++-- custom/cgitrc | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/MANUAL.txt b/MANUAL.txt index e169453..c2e70a7 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -130,8 +130,11 @@ clone-url:: commit-filter:: Specifies a command which will be invoked to format commit messages, for - example to link a bug tracker. A ready filter linking object names and - configurable text references ships as + example to link a bug tracker. It applies on the commit page alone, to + the subject, the message, any notes and the trailer values that + "trailer-filter" leaves to it. Every other page shows messages + unfiltered, the log page's expanded messages included. A ready filter + linking object names and configurable text references ships as custom/extensions/link-commits.lua. Default value: none. See also: "Filter API", "repo.commit-filter". diff --git a/custom/cgitrc b/custom/cgitrc index 884c737..4ed8e3f 100644 --- a/custom/cgitrc +++ b/custom/cgitrc @@ -290,7 +290,8 @@ trust-scan-config=0 #about-filter=lua:/usr/local/lib/cgit/filters/about-render.lua # Filter command used to format commit messages, for example to turn object -# names and issue numbers into links. Value is a command. Default is none. +# names and issue numbers into links. It runs on the commit page only. Value is +# a command. Default is none. #commit-filter=lua:/usr/local/lib/cgit/filters/link-commits.lua # Filter command used to format author and committer emails, for example to add -- cgit 2.12.1