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-status.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-status.txt')
-rw-r--r-- | Documentation/git-status.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/git-status.txt b/Documentation/git-status.txt index 4dbb88373b..1561319eb2 100644 --- a/Documentation/git-status.txt +++ b/Documentation/git-status.txt @@ -79,6 +79,8 @@ Consider enabling untracked cache and split index if supported (see `git update-index --untracked-cache` and `git update-index --split-index`), Otherwise you can use `no` to have `git status` return more quickly without showing untracked files. +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]. |