summaryrefslogtreecommitdiff
path: root/functions/vcs.zsh
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2016-08-26 00:51:16 +0300
committerBen Hilburn <bhilburn@gmail.com>2016-08-31 03:41:51 +0300
commit3b0da2c3489fd65543d9b116d4aaa7d1405fff32 (patch)
tree2ba9b7da8f30be40475ace87362f249253152158 /functions/vcs.zsh
parente134c70bc16c3b58d02bcb58b11fc402d005562e (diff)
fixed svn-detect-changes().. the svn prompt has now the same behaviour as the git prompt..
Diffstat (limited to 'functions/vcs.zsh')
-rw-r--r--functions/vcs.zsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh
index 6cea3e8c..50b58fbf 100644
--- a/functions/vcs.zsh
+++ b/functions/vcs.zsh
@@ -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
}