Don't hold git lock in watch git status

This commit is contained in:
2026-08-26 13:32:57 +01:00
parent d52920f8af
commit 9aba1adce8

View File

@@ -146,7 +146,7 @@ fi
# watch command.
watch() {
if [ "git status" = "$*" ]; then
command watch --color -n 2 'git -c color.status=always status'
command watch --color -n 2 'git -c color.status=always --no-optional-locks status'
else
command watch "$@"
fi