]> git.ipfire.org Git - thirdparty/git.git/commit
parseopt: add tests for subcommand autocorrection
authorJiamu Sun <39@barroit.sh>
Mon, 16 Mar 2026 15:36:22 +0000 (00:36 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2026 18:21:08 +0000 (11:21 -0700)
commit273faabea8db47247564df092adf5a675ddfa284
tree2a08619e968a178ee947047ef736a3c928460f4f
parentae8b7e1d200977165755c2e6d5a22e1df8ab6bf1
parseopt: add tests for subcommand autocorrection

These tests cover default behavior (help.autocorrect is unset), no
correction, immediate correction, delayed correction, and rejection
when the typo is too dissimilar.

Signed-off-by: Jiamu Sun <39@barroit.sh>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/meson.build
t/t9004-autocorrect-subcommand.sh [new file with mode: 0755]