pull upstream changes from gitstatus

pull/567/head v1.4.0
romkatv 5 years ago
parent 95252aa7b3
commit d53355cd30

@ -381,9 +381,7 @@ function _gitstatus_process_response() {
# -D Unless this option is specified, report zero staged, unstaged and conflicted # -D Unless this option is specified, report zero staged, unstaged and conflicted
# changes for repositories with bash.showDirtyState = false. # changes for repositories with bash.showDirtyState = false.
function gitstatus_start() { function gitstatus_start() {
emulate -L zsh || return emulate -L zsh -o no_aliases -o no_bg_nice -o extended_glob -o typeset_silent || return
setopt no_aliases no_bg_nice extended_glob typeset_silent monitor || return
print -rnu2 || return print -rnu2 || return
local opt OPTARG local opt OPTARG
@ -465,6 +463,8 @@ function gitstatus_start() {
setopt xtrace setopt xtrace
fi fi
setopt monitor || return
if (( ! _GITSTATUS_STATE_$name )); then if (( ! _GITSTATUS_STATE_$name )); then
if [[ -r /proc/version && "$(</proc/version)" == *Microsoft* ]]; then if [[ -r /proc/version && "$(</proc/version)" == *Microsoft* ]]; then
lock_fd=-1 lock_fd=-1

Loading…
Cancel
Save