diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-03-13 10:32:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-13 10:43:32 -0700 |
commit | f66e1a071bd66e64160d9e73428d6cd7bdcff84e (patch) | |
tree | 82ca709836c0dc4353151157676d68486664fd45 /Documentation/git-commit.txt | |
parent | 63acdc4827869a6cedd46aca62e16819498c53fb (diff) | |
download | git-f66e1a071bd66e64160d9e73428d6cd7bdcff84e.tar.gz |
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>
Diffstat (limited to 'Documentation/git-commit.txt')
-rw-r--r-- | Documentation/git-commit.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt index a6cef5d820..89ecfc63a8 100644 --- a/Documentation/git-commit.txt +++ b/Documentation/git-commit.txt @@ -347,6 +347,8 @@ The possible options are: - 'normal' - Shows untracked files and directories - 'all' - Also shows individual files in untracked directories. +All usual spellings for Boolean value `true` are taken as `normal` +and `false` as `no`. The default can be changed using the status.showUntrackedFiles configuration variable documented in linkgit:git-config[1]. -- |