🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #4142

[PATCH v5 2/2] lint-docs: ensure command-list.txt lists all guides

#4142
From: 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
Technical Details
Message-ID: <20261130162257.24770-3-taahol@utu.fi>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76706-linux-kernel-git=dewy.ru
References: <20260909052501.8448-1-taahol@utu.fi> <20261130162257.24770-1-taahol@utu.fi>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76706-linux-kernel-git=dewy.ru
From: taahol@utu.fi (Tuomas Ahola)
Newsgroups: linux.kernel.git
Subject: [PATCH v5 2/2] lint-docs: ensure command-list.txt lists all guides
Date: Mon, 30 Nov 2026 18:22:57 +0200
Organization: Usenet Network
Message-ID: <20261130162257.24770-3-taahol@utu.fi>
References: <20260909052501.8448-1-taahol@utu.fi> <20261130162257.24770-1-taahol@utu.fi>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="1467608"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:slwPwnwHS5m2oBZFC9rA8mSkaog= sha256:p/lzbmS29wms2mtftHdYM7LXSeY2W5uIQhrPMybr/Ws= sha1:DLJqNsKJ10S8xF/1YLzP1IqyDvw= sha256:gvEm5bvCs5b0YQNYUKUplhthKHycSPg4suaLZgkES2g=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 8B866125FF6; Mon, 30 Nov 2026 19:23:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=utu.fi
X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tVtNvvVuFWA6; Mon, 30 Nov 2026 19:23:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76706-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=utu.fi
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 38960125FF3; Mon, 30 Nov 2026 19:23:21 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 7F3422C339; Mon, 30 Nov 2026 16:23:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1796055798; b=avfqKdA1jDO4tdxSDy6tX/nt48N31kErz//1SVbwda0WPUjXHre0bnWNWC/2mGCHmt4b sWZ0jZscE07XiaLAtjAo4XVoGUhM1Hb34h12W+tuS0ylMohY5Rv4tZAMycNTVx+8f5b6J jZ6aCYrLhZ1rawh8/OCOs7EfW9TSRcX4+zJt1c+4HCcGhT6uXZUWSMW6ciuB/IWxRLj+W ixwgG3H0w+4OEdqWAHRQLjbdXINx24wzwS4pqRutTiXRFOAsj7lxWvCNC4aw0Q8UT8hQy c2uJ9B63DwVK9DR9rMM1HGclyZv+xQDlwDwEY0Vpc1n2w1FfqF+1H/JiN/v7zEOF7mA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796055798; h=X-Original-To:Received:DMARC-Filter:Received:Received:Received: Received:From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Content-Type:X-ClientProxiedBy: X-FEAS-BEC-Info:X-FEAS-Client-IP:X-FE-Last-Public-Client-IP: X-FE-Policy-ID:X-FE-Hostname:DKIM-Signature; bh=IkXh4wxkAunLAloc6XRBRWkX0W88hv6se0JUujBw948=; b=j3gwfdv/e8Dn2jAKjBU3zVmFBsfV3I2UKq98TMqRhTki3v1uZhcssvI7Q/iOdsyECMjd po2ml3MYX4imB5llMPiF9P/w3W6ZOsyaq2CRgwCjonJ5QfFGnUvtaJZHUwl/BedN8bHBT o4tDMSqGgaBHFcDOP2tzRpa+jlv/5nH8DvBbk3Sayff6VuvSIzTJh64tc4k3U6N6wPXiO X/cr9lmADfhRu9Gm+KtcMF9ebKkD3e4kAAax5af69lT1b1Fx8jHdzpV1Yor7E2xG6Re+B LGlrTmrie/TB18JTa3Y50KLX9pTptKU4WGklyejfj1gWIOuZ5qzqJGt514u1Jv7Gn6g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=KwkWUUSC; dmarc=pass header.from=utu.fi; spf=pass smtp.mailfrom=utu.fi; arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C4B0606A339; Mon, 30 Nov 2026 16:23:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=KwkWUUSC
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=130.232.247.4
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796055797; b=N3qv8WCj9ctqsCVXaNrGRISZLm7+mxZNYD6HH4wMONCYibSDF77vS6BB5ayaqUsAJSoV XLne46aK0xCEiJuc/jqf9d7gMtBkcuXiOgmajAMZrwdC7Lah41iqTek76KdvB7wp4pxKz DcXQRq0KZ9Sa0bsIc9E65M8FBbPW0vkDf0+S56oTft/oi86slh3W3oeS4Pm7v0YbwfElf CMntKhJhDhup9skOPp5MKf5qodstK/TVSIfwIe+V5IeBGN5absJfI8BGblk9+2PBE5K+D ITwHnJIXNorMBA7AC4pbDGlwd59guBmMvEizacdS7NeX5F1LS7ADkI6e1owT9jHQFgw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796055797; h=DMARC-Filter:Received:Received:Received:Received:From:To:CC:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type:X-Originating-IP: X-ClientProxiedBy:X-FEAS-BEC-Info:X-FEAS-Client-IP: X-FE-Last-Public-Client-IP:X-FE-Policy-ID:X-FE-Hostname: DKIM-Signature; bh=IkXh4wxkAunLAloc6XRBRWkX0W88hv6se0JUujBw948=; b=PF8ou5+gG4HVO2sA8MePaBHYgN3WVZk5fSZb2SFWUCdw1mD3wjnp9qJe/MpOCg1wjdoP AwREvxno2iJstv6X7D6DtjZ2qfXskXV+s/CSswRNOKLSGNHywC1+y0oxRmxMAdFlybMWm ZX/NyN0MQucCenVoHKtTRucKMZowlGiAy4qPWFExicqwT9iA94TVsWns9m/nhBqsSSgZA nssFnwlZoxh+auCZn2ggTfV/2dpzDxp6RVL97ykEVWkb9goSnYgYXFd39Xp4jW/u+w80N TupAIf3i0ZEDl8w/BjodLZJ/iWkA3Gjujg044uONsPD5/sI8CilPEsB+RLtZ64rv3MA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=utu.fi; spf=pass smtp.mailfrom=utu.fi; dkim=pass header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=KwkWUUSC; arc=none smtp.remote-ip=130.232.247.4
X-Received: from fortymile.utu.fi (fortymile.utu.fi [130.232.247.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1528B606A31C for <git@vger.kernel.org>; Mon, 30 Nov 2026 16:23:15 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1528B606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=utu.fi
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=utu.fi
X-Received: from smtp-04.utu.fi (smtp-04.utu.fi [130.232.207.47]) by fortymile.utu.fi  with ESMTPS id 6AUGMxl6020027-6AUGMxl8020027 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 30 Nov 2026 18:22:59 +0200
X-Received: from ex19-06.utu.fi ([130.232.247.46]) by smtp-04.utu.fi with esmtps  (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <taahol@utu.fi>) id 1xY49b-0000Uv-Qf; Mon, 30 Nov 2026 18:22:59 +0200
X-Received: from localhost (86.50.95.90) by ex19-06.utu.fi (130.232.247.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Mon, 30 Nov 2026 18:22:59 +0200
X-Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id d5787233; Mon, 30 Nov 2026 16:22:58 +0000 (UTC)
X-CC: Junio C Hamano <gitster@pobox.com>, Julia Evans <julia@jvns.ca>, Kristoffer Haugsbakk <code@khaugsbakk.name>, Tuomas Ahola <taahol@utu.fi>
X-Mailer: git-send-email 2.30.2
X-In-Reply-To: <20261130162257.24770-1-taahol@utu.fi>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-ClientProxiedBy: ex19-06.utu.fi (130.232.247.46) To ex19-06.utu.fi (130.232.247.46)
X-FEAS-BEC-Info: WlpIGw0aAQkEARIJHAEHBlJSCRoLAAEeDUhZUEhYSFhIWkhZXkguLT4lWFxYWFhYWFBeUVxfSFhISFlbSBwJCQAHBCgdHB1GDgFIWUhZUUgPARwoHg8NGkYDDRoGDQRG BxoPSFhIWkhZXEhZW1hGWltaRlpYX0ZcX0hQSFhIWEhcSFhIWEhYSFpYSAsHDA0oAwAJHQ8bCgkDA0YGCQUNSFhIWVFIDwEcKB4PDRpGAw0aBg0ERgcaD0hYSFlfSA8B HBscDRooGAcKBxBGCwcFSFhIWVtIAh0EAQkoAh4GG0YLCUhY
X-FEAS-Client-IP: 130.232.207.47
X-FE-Last-Public-Client-IP: 130.232.207.47
X-FE-Policy-ID: 3:5:2:SYSTEM
X-FE-Hostname: fortymile.utu.fi
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; d=utu.fi; s=out-utu-v3; c=relaxed/relaxed; h=from:to:cc:subject:date:message-id:references:mime-version:content-type; bh=IkXh4wxkAunLAloc6XRBRWkX0W88hv6se0JUujBw948=; b=KwkWUUSCsw/acSWjEHiEQ6R+ZhQEUPacqNXBqa/nTZ/dr8zJ53MeVJ3oF3QtdEj1xXUIb/xM7sqI FPFtX22uD8KALquJ0UevfeaeMQPOtl3iVxdmRg1qt2/GjLik8aHpFlut4IR9rKmZa4wXpFi+zuNA muho8igG8UQFpsMCw+NNsUPj9hAuZQHpMQWRs385jaOZzcNg4KZ+4qsiLKSw17WbxMLI7XTtSG3x bmz1mY/nTH0+fyAzRClJz2CgFvhLK+8Xma+DzdROmZCFyKn/Z4FvGKe/N3BElAoCm9SOEt9I2UMj wYWIMplfhch137UB44BkhDalhpYSLxgyAsiqhw==