]> git.ipfire.org Git - thirdparty/git.git/commit
parseopt: add tests for subcommand autocorrection
authorJiamu Sun <39@barroit.sh>
Thu, 23 Apr 2026 01:37:59 +0000 (10:37 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Apr 2026 02:02:29 +0000 (11:02 +0900)
commitd4ad16d56ff6f540988925ea271546853fb7c282
treedf6ac255eac839e508f9f5a73c557ccc131e7190
parent22188044a9f50a0c5581999b908ff30be393d887
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]