🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.git
1 messages
1 total messages Started by Tuomas Ahola Mon, 30 Nov 2026 16:22
[PATCH v5 2/2] lint-docs: ensure command-list.txt lists all guides
#4142
Author: Tuomas Ahola
Date: Mon, 30 Nov 2026 16:22
66 lines
11653 bytes
Since 2135e1ad70 (command-list.txt: add missing 'gitcredentials' and
'gitremote-helpers', 2020-08-05) there has been a comment in
Documentation/Makefile reminding developers to add new guides also to
command-list.txt.  However, there is no linter script to enforce that.

Adapt Documentation/lint-manpages.sh to fill that role, and let it
scrutinize command-list.txt against MAN5_TXT and MAN7_TXT.  Exempt
gitweb.conf(5) and gittutorial-2(7) from the new linter routine as
deliberate omissions.

While at it, mark lint-docs-manpages as a .PHONY target.

Signed-off-by: Tuomas Ahola <taahol@utu.fi>
---
 Documentation/Makefile         | 3 ++-
 Documentation/lint-manpages.sh | 5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/Makefile b/Documentation/Makefile
index b574ca2044..9a05456a89 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -532,8 +532,9 @@ $(LINT_DOCS_DOC_STYLE): .build/lint-docs/doc-style/%.ok: %.adoc
 .PHONY: lint-docs-doc-style
 lint-docs-doc-style: $(LINT_DOCS_DOC_STYLE)
 
+.PHONY: lint-docs-manpages
 lint-docs-manpages:
-	$(QUIET_GEN)./lint-manpages.sh
+	$(QUIET_GEN)./lint-manpages.sh $(patsubst %.adoc,%,$(MAN5_TXT) $(MAN7_TXT))
 
 .PHONY: lint-docs-meson
 lint-docs-meson:
diff --git a/Documentation/lint-manpages.sh b/Documentation/lint-manpages.sh
index a0ea572382..640616e062 100755
--- a/Documentation/lint-manpages.sh
+++ b/Documentation/lint-manpages.sh
@@ -15,7 +15,7 @@ EOF
 check_missing_docs () (
 	ret=0
 
-	for v in $ALL_COMMANDS
+	for v in $ALL_COMMANDS $MAN_GUIDES
 	do
 		case "$v" in
 		git-merge-octopus) continue;;
@@ -29,6 +29,8 @@ check_missing_docs () (
 		git-stage) continue;;
 		git-legacy-*) continue;;
 		git-?*--?* ) continue ;;
+		gittutorial-2) continue ;;
+		gitweb.conf) continue ;;
 		esac
 
 		if ! test -f "$v.adoc"
@@ -87,6 +89,7 @@ check_extraneous_docs () {
 BUILT_INS="$(extract_variable BUILT_INS)"
 ALL_COMMANDS="$(extract_variable ALL_COMMANDS)"
 EXCLUDED_PROGRAMS="$(extract_variable EXCLUDED_PROGRAMS)"
+MAN_GUIDES="$@"
 
 findings=$(
 	if ! check_missing_docs
-- 
ta/command-list-guides-sync-lint
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads