Note git fsmonitor in documentation
Bug: none Change-Id: Iae166494eb3cbce14be6510b6915cf808533733f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4566415 Auto-Submit: Avi Drissman <avi@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1149857}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
3cf2b45cd3
commit
c0f6793aca
@ -348,6 +348,15 @@ If `git --version` reports 2.6 or higher, but below 2.8, you can instead run
|
||||
$ git update-index --untracked-cache
|
||||
```
|
||||
|
||||
#### Configure git to use fsmonitor
|
||||
|
||||
If `git --version` reports 2.37 or higher, use fsmonitor, which will
|
||||
significantly speed git:
|
||||
|
||||
```shell
|
||||
$ git config core.fsmonitor true
|
||||
```
|
||||
|
||||
### Xcode license agreement
|
||||
|
||||
If you're getting the error
|
||||
|
@ -488,3 +488,34 @@ attach to the main browser process. To debug all of Chrome, install
|
||||
You will also need to run Visual Studio as administrator, or it will silently
|
||||
fail to attach to some of Chrome's child processes.
|
||||
|
||||
### Improving performance of `git status`
|
||||
|
||||
#### Configure git to use an untracked cache
|
||||
|
||||
If `git --version` reports 2.8 or higher, try running
|
||||
|
||||
```shell
|
||||
$ git update-index --test-untracked-cache
|
||||
```
|
||||
|
||||
If the output ends with `OK`, then the following may also improve performance of
|
||||
`git status`:
|
||||
|
||||
```shell
|
||||
$ git config core.untrackedCache true
|
||||
```
|
||||
|
||||
If `git --version` reports 2.6 or higher, but below 2.8, you can instead run
|
||||
|
||||
```shell
|
||||
$ git update-index --untracked-cache
|
||||
```
|
||||
|
||||
#### Configure git to use fsmonitor
|
||||
|
||||
If `git --version` reports 2.37 or higher, use fsmonitor, which will
|
||||
significantly speed git:
|
||||
|
||||
```shell
|
||||
$ git config core.fsmonitor true
|
||||
```
|
||||
|
Reference in New Issue
Block a user