mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-26 22:10:45 +02:00
28961: Add `no-vcs' hook.
This commit is contained in:
parent
abe0ee3936
commit
7c50fa1262
@ -18,6 +18,9 @@
|
||||
Functions/VCS_Info/vcs_info_hookdel: Add functions to add/remove
|
||||
static hooks.
|
||||
|
||||
* 28961: Doc/Zsh/contrib.yo, Functions/VCS_Info/VCS_INFO_set: Add
|
||||
`no-vcs' hook.
|
||||
|
||||
2011-03-29 Mikael Magnusson <mikachu@gmail.com>
|
||||
|
||||
* unposted: Completion/Unix/Command/_vim: Fix typo in
|
||||
@ -14407,5 +14410,5 @@
|
||||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5237 $
|
||||
* $Revision: 1.5238 $
|
||||
*****************************************************
|
||||
|
@ -1307,6 +1307,11 @@ When setting tt(ret) to non-zero, the string in
|
||||
tt(${hook_com[guards-string]}) will be used in the var(%g) escape in the
|
||||
tt(patch-format) and tt(nopatch-format) styles.
|
||||
)
|
||||
item(tt(no-vcs))(
|
||||
This hooks is called when no version control system was detected.
|
||||
|
||||
The `hook_com' parameter is not used.
|
||||
)
|
||||
item(tt(post-quilt))(
|
||||
Called after the tt(quilt) support is done. The following information
|
||||
is passed as arguments to the hook: 1. the quilt-support mode (`addon' or
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user