1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 13:41:56 +00:00

fixed svn-detect-changes().. the svn prompt has now the same behaviour as the git prompt..

This commit is contained in:
Christian Rebischke 2016-08-25 23:51:16 +02:00 committed by Ben Hilburn
parent e134c70bc1
commit 3b0da2c348

View file

@ -127,11 +127,11 @@ function +vi-vcs-detect-changes() {
function +vi-svn-detect-changes() {
local svn_status=$(svn status)
if [[ -n "$(echo "$svn_status" | grep \^\?)" ]]; then
hook_com[unstaged]+=" $(print_icon 'VCS_STASH_ICON')"
VCS_WORKDIR_HALF_DIRTY=true
elif [[ -n "$(echo "$svn_status" | grep \^\A)" ]]; then
fi
if [[ -n "$(echo "$svn_status" | grep \^\A)" ]]; then
VCS_WORKDIR_DIRTY=true
else
VCS_WORKDIR_DIRTY=false
VCS_WORKDIR_HALF_DIRTY=false
hook_com[unstaged]+=" $(print_icon 'VCS_STAGED_ICON')"
fi
}