mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 17:50:09 +00:00
pull upstream changes from gitstatus
This commit is contained in:
parent
80b865e736
commit
8c97104c79
1 changed files with 3 additions and 3 deletions
|
@ -181,13 +181,13 @@ function _gitstatus_process_response() {
|
||||||
typeset -gi VCS_STATUS_STASHES="${resp[16]}"
|
typeset -gi VCS_STATUS_STASHES="${resp[16]}"
|
||||||
typeset -g VCS_STATUS_TAG="${resp[17]}"
|
typeset -g VCS_STATUS_TAG="${resp[17]}"
|
||||||
typeset -gi VCS_STATUS_HAS_STAGED=$((VCS_STATUS_NUM_STAGED > 0))
|
typeset -gi VCS_STATUS_HAS_STAGED=$((VCS_STATUS_NUM_STAGED > 0))
|
||||||
if (( dirty_max_index_size >= 0 && VCS_STATUS_INDEX_SIZE > dirty_max_index_size )); then
|
(( dirty_max_index_size >= 0 && VCS_STATUS_INDEX_SIZE > dirty_max_index_size )) && {
|
||||||
typeset -gi VCS_STATUS_HAS_UNSTAGED=-1
|
typeset -gi VCS_STATUS_HAS_UNSTAGED=-1
|
||||||
typeset -gi VCS_STATUS_HAS_UNTRACKED=-1
|
typeset -gi VCS_STATUS_HAS_UNTRACKED=-1
|
||||||
else
|
} || {
|
||||||
typeset -gi VCS_STATUS_HAS_UNSTAGED=$((VCS_STATUS_NUM_UNSTAGED > 0))
|
typeset -gi VCS_STATUS_HAS_UNSTAGED=$((VCS_STATUS_NUM_UNSTAGED > 0))
|
||||||
typeset -gi VCS_STATUS_HAS_UNTRACKED=$((VCS_STATUS_NUM_UNTRACKED > 0))
|
typeset -gi VCS_STATUS_HAS_UNTRACKED=$((VCS_STATUS_NUM_UNTRACKED > 0))
|
||||||
fi
|
}
|
||||||
} || {
|
} || {
|
||||||
(( ours )) && VCS_STATUS_RESULT=norepo-sync || VCS_STATUS_RESULT=norepo-async
|
(( ours )) && VCS_STATUS_RESULT=norepo-sync || VCS_STATUS_RESULT=norepo-async
|
||||||
unset VCS_STATUS_WORKDIR
|
unset VCS_STATUS_WORKDIR
|
||||||
|
|
Loading…
Reference in a new issue