From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=130.232.247.4 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== 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== 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 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 ; Mon, 30 Nov 2026 16:23:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1528B606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=utu.fi Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=utu.fi Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=KwkWUUSC 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 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 ) id 1xY49b-0000Uv-Qf; Mon, 30 Nov 2026 18:22:59 +0200 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 Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id d5787233; Mon, 30 Nov 2026 16:22:58 +0000 (UTC) From: Tuomas Ahola To: CC: Junio C Hamano , Julia Evans , Kristoffer Haugsbakk , Tuomas Ahola Subject: [PATCH v5 2/2] lint-docs: ensure command-list.txt lists all guides Date: Mon, 30 Nov 2026 18:22:57 +0200 Message-ID: <20261130162257.24770-3-taahol@utu.fi> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20261130162257.24770-1-taahol@utu.fi> References: <20260909052501.8448-1-taahol@utu.fi> <20261130162257.24770-1-taahol@utu.fi> X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 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== 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 --- 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