]> git.ipfire.org Git - thirdparty/git.git/commit
status: allow --untracked=false and friends
authorJunio C Hamano <gitster@pobox.com>
Wed, 13 Mar 2024 17:32:14 +0000 (10:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Mar 2024 17:43:32 +0000 (10:43 -0700)
commitf66e1a071bd66e64160d9e73428d6cd7bdcff84e
tree82ca709836c0dc4353151157676d68486664fd45
parent63acdc4827869a6cedd46aca62e16819498c53fb
status: allow --untracked=false and friends

It is natural to expect that the "--untracked" option and the
status.showuntrackedFiles configuration variable to take a Boolean
value ("do you want me to show untracked files?"), but the current
code takes nothing but "no" as "no, please do not show any".

Allow the usual Boolean values to be given, and treat 'true' as
"normal", and 'false' as "no".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/status.txt
Documentation/git-commit.txt
Documentation/git-status.txt
builtin/commit.c
t/t7508-status.sh