项目文件夹

文件
Bastian Staunstrup 861a2a0638 fix(git): always pass --no-optional-locks to prevent index.lock races (#381)
When the statusline refreshes while another git process is writing
.git/index.lock (e.g. a concurrent `git restore --staged`), commands
like `git diff --shortstat` fail with "Unable to create index.lock"
because diff tries to refresh the stat cache and races on the lock.

`runGitArgs` now prepends `--no-optional-locks` to every git
invocation so read-only commands cannot interfere with the user's
working git operations. The two call sites that already prefixed the
flag manually are simplified.
2026-05-15 09:38:40 -04:00
..
2026-05-12 02:14:02 -04:00