]> git.ipfire.org Git - thirdparty/git.git/commit
t/t1517: automate `git subcmd -h` tests outside a repository
authorUsman Akinyemi <usmanakinyemi202@gmail.com>
Fri, 8 Aug 2025 01:06:49 +0000 (06:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Aug 2025 14:48:27 +0000 (07:48 -0700)
commit39fc4085620b60f8a06239a249f6877111e5ac11
treeb4ab972aad30179aca3312a1c40179896e7f322a
parent866e6a391f466baeeb98bc585845ea638322c04b
t/t1517: automate `git subcmd -h` tests outside a repository

Replace manual `-h` tests with a loop over all subcommands using
`git --list-cmds=main`. This ensures consistent coverage of `-h`
behavior outside a repo and future-proofs the test by covering
new commands automatically.

Known exceptions are skipped or marked as expected failures.

Suggested-by: Patrick Steinhardt <ps@pks.im>
Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1517-outside-repo.sh