1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-24 04:50:27 +02:00

28961: Add `no-vcs' hook.

This commit is contained in:
Frank Terbeck 2011-03-30 21:19:17 +00:00
parent abe0ee3936
commit 7c50fa1262
3 changed files with 10 additions and 1 deletions

View file

@ -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