]> git.ipfire.org Git - thirdparty/git.git/commit
doc lint: lint relative section order
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 9 Apr 2021 15:02:49 +0000 (17:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 Apr 2021 06:36:34 +0000 (23:36 -0700)
commitea8b9271b17e64502dc80981cf09cec42739dce7
tree7660e38921c7d2d36df523bbefdbfbff260e9869
parentcafd9828e89328fef563e39f3b8e78e9aee74da5
doc lint: lint relative section order

Add a linting script to check the relative order of the sections in
the documentation. We should have NAME, then SYNOPSIS, DESCRIPTION,
OPTIONS etc. in that order.

That holds true throughout our documentation, except for a few
exceptions which are hardcoded in the linting script.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/Makefile
Documentation/lint-man-section-order.perl [new file with mode: 0755]