Don't hold git lock in watch git status
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user