]> git.ipfire.org Git - thirdparty/git.git/commit
autocorrect: use mode and delay instead of magic numbers
authorJiamu Sun <39@barroit.sh>
Thu, 23 Apr 2026 01:37:54 +0000 (10:37 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Apr 2026 02:02:14 +0000 (11:02 +0900)
commit8fd1a7cd29734849bafc1b559fa3e879daeca831
tree62e34ddf44af6e16a5db666818bfa4173bad1e80
parenta4e62f995bb4f4a221c47898120b9152b842fa91
autocorrect: use mode and delay instead of magic numbers

Drop magic numbers and describe autocorrect config with a mode enum and
an integer delay. This reduces errors when mutating config values and
makes the values easier to access.

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