]> git.ipfire.org Git - thirdparty/git.git/commit
help: move tty check for autocorrection to autocorrect.c
authorJiamu Sun <39@barroit.sh>
Mon, 16 Mar 2026 15:36:16 +0000 (00:36 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2026 18:21:07 +0000 (11:21 -0700)
commit916b96c0ec006216fcb9475fea37c9bc8e6b6505
treedc85e1e3d41d966ce89b29499ebf55766538d76a
parente0245a1169b2acddd94be4da02c426419507f0b5
help: move tty check for autocorrection to autocorrect.c

TTY checking is the autocorrect config parser's responsibility. It must
ensure the parsed value is correct and reliable. Thus, move the check to
autocorrect_resolve_config().

Signed-off-by: Jiamu Sun <39@barroit.sh>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
autocorrect.c
help.c