]> git.ipfire.org Git - thirdparty/git.git/commit - wt-status.c
status: modernize git-status "slow untracked files" advice
authorRudy Rigot <rudy.rigot@gmail.com>
Wed, 30 Nov 2022 00:52:16 +0000 (00:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Dec 2022 06:27:41 +0000 (15:27 +0900)
commitecbc23e4c580e9a204b7b463046f7bb3d11f8749
tree71970616594c98d77537294fb40054765a0b68db
parentc000d916380bb59db69c78546928eadd076b9c7d
status: modernize git-status "slow untracked files" advice

`git status` can be slow when there are a large number of
untracked files and directories since Git must search the entire
worktree to enumerate them.  When it is too slow, Git prints
advice with the elapsed search time and a suggestion to disable
the search using the `-uno` option.  This suggestion also carries
a warning that might scare off some users.

However, these days, `-uno` isn't the only option.  Git can reduce
the time taken to enumerate untracked files by caching results from
previous `git status` invocations, when the `core.untrackedCache`
and `core.fsmonitor` features are enabled.

Update the `git status` man page to explain these configuration
options, and update the advice to provide more detail about the
current configuration and to refer to the updated documentation.

Signed-off-by: Rudy Rigot <rudy.rigot@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-status.txt
t/t7508-status.sh
wt-status.c