]> git.ipfire.org Git - thirdparty/git.git/commit
t0450: add allowlist for builtins with missing .adoc
authorToon Claes <toon@iotcl.com>
Fri, 8 Aug 2025 09:59:43 +0000 (11:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Sep 2025 21:38:34 +0000 (14:38 -0700)
commitf9a6705d9a1012bc5349a9f010fee3abbf8c53e6
tree88b8ccfc9b6cf117e278e0da47513a51e9595810
parentf175b349a579e19cde1afe87d3be0d1f8358853c
t0450: add allowlist for builtins with missing .adoc

Before we were silently skipping all builtins that don't have a matching
.adoc file. This is overly loose and might skip documentation files
when it shouldn't, for example when there was a typo in the filename.

To ensure no new builtins are added without documentation, add an
allowlist: t0450/adoc-missing. In this file only builtin commands that
do *not* have a corresponding .adoc file shall be listed. If there is a
mismatch, fail the test. This should force future contributions to
either add an .adoc, or add the builtin name to the allowlist file.

Signed-off-by: Toon Claes <toon@iotcl.com>
[jc: squashed Patrick's "missing file fix" in]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0450-txt-doc-vs-help.sh
t/t0450/adoc-missing [new file with mode: 0644]