File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,19 @@ ignored submodules you can either use the --ignore-submodules=dirty command
387
387
line option or the 'git submodule summary' command, which shows a similar
388
388
output but does not honor these settings.
389
389
390
+ BACKGROUND REFRESH
391
+ ------------------
392
+
393
+ By default, `git status` will automatically refresh the index, updating
394
+ the cached stat information from the working tree and writing out the
395
+ result. Writing out the updated index is an optimization that isn't
396
+ strictly necessary (`status` computes the values for itself, but writing
397
+ them out is just to save subsequent programs from repeating our
398
+ computation). When `status` is run in the background, the lock held
399
+ during the write may conflict with other simultaneous processes, causing
400
+ them to fail. Scripts running `status` in the background should consider
401
+ using `git --no-optional-locks status` (see linkgit:git[1] for details).
402
+
390
403
SEE ALSO
391
404
--------
392
405
linkgit:gitignore[5]
You can’t perform that action at this time.
0 commit comments