summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorRudy Rigot <rudy.rigot@gmail.com>2022-11-30 00:52:16 +0000
committerJunio C Hamano <gitster@pobox.com>2022-12-01 15:27:41 +0900
commitecbc23e4c580e9a204b7b463046f7bb3d11f8749 (patch)
tree71970616594c98d77537294fb40054765a0b68db /commit.c
parentc000d916380bb59db69c78546928eadd076b9c7d (diff)
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>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions