summaryrefslogtreecommitdiff
path: root/Functions
diff options
context:
space:
mode:
authorFrank Terbeck <bewater@users.sourceforge.net>2011-03-30 21:19:17 +0000
committerFrank Terbeck <bewater@users.sourceforge.net>2011-03-30 21:19:17 +0000
commit7c50fa1262bd106a923f8b7be85d8f23afc4ecc7 (patch)
tree78342e24fd476d5526f86f56fc8a18cdff127e5f /Functions
parentabe0ee3936c7f4a291666af3a9d70ed2a6d710f4 (diff)
downloadzsh-7c50fa1262bd106a923f8b7be85d8f23afc4ecc7.tar.gz
zsh-7c50fa1262bd106a923f8b7be85d8f23afc4ecc7.zip
28961: Add `no-vcs' hook.
Diffstat (limited to 'Functions')
-rw-r--r--Functions/VCS_Info/VCS_INFO_set1
1 files changed, 1 insertions, 0 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_set b/Functions/VCS_Info/VCS_INFO_set
index a2b838cdb..23dc06b4b 100644
--- a/Functions/VCS_Info/VCS_INFO_set
+++ b/Functions/VCS_Info/VCS_INFO_set
@@ -16,6 +16,7 @@ if [[ $1 == '--nvcs' ]] ; then
typeset -gx vcs_info_msg_${i}_=
done
VCS_INFO_nvcsformats $2
+ [[ $2 != '-preinit-' ]] && VCS_INFO_hook "no-vcs"
fi
(( ${#msgs} - 1 < 0 )) && return 0