]> git.ipfire.org Git - thirdparty/git.git/commit
help tests: test "git" and "git help [-a|-g] spacing
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 21 Feb 2022 19:38:46 +0000 (20:38 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Feb 2022 21:41:36 +0000 (13:41 -0800)
commitbf7eed75b90756c960da4828476b669a358df05b
tree0556f5e0405de6e9dd626184827ad3d11b700968
parentcd87ce7d0def6b6efeb1ae688bde217a0a47c9eb
help tests: test "git" and "git help [-a|-g] spacing

There's logic in "help.c"'s "print_cmd_by_category()" to emit "help"
output with particular spacing, which doesn't make much sense when
emitting only one section with "help -g".

Let's add tests for the current spacing in preparation for a
subsequent whitespace formatting fix, and make sure that that fix
doesn't cause regressions for the "git" and "git help" output.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0012-help.sh