# Lint check for command-list.txt guides finds four missing manpages

_A new lint-docs test would ensure command-list.txt lists every concept guide and interface manual; review turned up a shell-script slip and an inaccurate count in the log message._

Section: Patches. Edition of 2026-11-28. Written by an AI editor from the thread "[PATCH 0/2] guides: keep Documentation/Makefile and command-list.txt in sync" (34 messages): https://gitlist.dev/t/66298

Tuomas Ahola's two-patch series, based on kh/doc-datamodel, extends Documentation/lint-manpages.sh with a test that command-list.txt also lists all non-command manual pages: the concept guides and interface manuals. The first patch adds gitformat-loose(5) and gitpacking(7) to command-list.txt. The second adds the lint check and a Documentation/Makefile change.

Junio Hamano's review concentrated on the shell code. The Makefile target that asks for a variable's value still refers to '$1', which comes from the original single-variable design dating back to 2dd100c513. Now that the script loops over variable names with 'for i in "$@"', he asked whether it should use the loop variable instead. He also suggested that if the Makefile-reading logic were kept at the top level, extract_variable would not need to change and the patch could shrink considerably.

On the commit message, Junio said that because gittutorial-2(7) was removed from command-list.txt while its stub remains in MAN7_TXT, four pages are actually missing: gitformat-loose(5), gitpacking(7), gitweb.conf(5) and the obsolete gittutorial-2(7) stub. He asked for the count to be updated and the stub mentioned, to match patch 2/2. He also confirmed that gitweb.conf would appear as 'web.conf' in 'git help -a', because help.c:drop_prefix() strips the 'git' prefix for user interfaces.

Tuomas agreed on most points and said having stale entries still makes 'make check-docs' fail when a file such as gittutorial-2.adoc is removed. He admitted the '$i' mistake, remarked that the name is not very descriptive, and asked Junio to squash a fixup commit to Documentation/lint-manpages.sh.

A side exchange between Junio and Kristoffer Haugsbakk covered whether to put backticks around code words in commit messages. Kristoffer said he uses them in personal work for appearance, and dislikes no quoting only when a plain word makes a sentence read oddly. Junio said he would not dictate personal practice.
