Skip to content

Commit aeb6f8b

Browse files
pcloudsgitster
authored andcommitted
git-status.txt: advertisement for untracked cache
When a good user sees the "too long, consider -uno" advice when running `git status`, they should check out the man page to find out more. This change suggests they try untracked cache before -uno. Helped-by: brian m. carlson <[email protected]> Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1e8fef6 commit aeb6f8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/git-status.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ When `-u` option is not used, untracked files and directories are
5858
shown (i.e. the same as specifying `normal`), to help you avoid
5959
forgetting to add newly created files. Because it takes extra work
6060
to find untracked files in the filesystem, this mode may take some
61-
time in a large working tree. You can use `no` to have `git status`
61+
time in a large working tree.
62+
Consider enabling untracked cache and split index if supported (see
63+
`git update-index --untracked-cache` and `git update-index
64+
--split-index`), Otherwise you can use `no` to have `git status`
6265
return more quickly without showing untracked files.
6366
+
6467
The default can be changed using the status.showUntrackedFiles

0 commit comments

Comments
 (0)