Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
vcs_info git quilt: gen-applied-string hook
- X-seq: zsh-users 20807
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: vcs_info git quilt: gen-applied-string hook
- Date: Thu, 22 Oct 2015 12:31:38 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=Q7x 9LmUW4M76YD40iVA77WyFWiY=; b=OAMsj+vBImwVNosBbQSm8WldTGbitFDDaht EWgC4UUM/TZS6soQgwXRVIX6DYnzrQE7Vd8TLxdhTtMaIt5DM/zmxYGo1iSNGg2w u2kxCaF7BnWNK2wOVG8gtCehHF6Pag//HPyTcuN7Va8wiJ5LwatKcDiO74w3QfyM pCvirFi8=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Q7 x9LmUW4M76YD40iVA77WyFWiY=; b=kaUaDFD6GNGmqEGcTNUS+D9V3dABQ4h/mY iUGNp2jG6P5JUmyha0BV8KHxSgzt/p5rbEs0hwcvic5KJ5lG9lT4tGjW2d/kBbrO GNAgW3b8+W5Ay211AuPLqUZMZKzxkqtftYRv4Mwms9RKFlDBNbkdwDycQvwt4Pbs XZ96WSczw=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
$ zsh -f
% autoload -Uz vcs_info
% precmd() { vcs_info ; print -rl - $vcs_info_msg_0_ $vcs_info_msg_1_ $vcs_info_msg_2_ }
% zstyle :vcs_info:\* use-quilt true
% zstyle :vcs_info:\* actionformats %m
% zstyle :vcs_info:\* formats %Q
% zstyle :vcs_info:git+gen-applied-string:\* hooks f
% +vi-f() { hook_com[applied-string]="+vi-f: Called with ${(q-)1}"; ret=1 }
The above hook gets called both by the git backend (e.g., during a rebase) and
by the 'addon' quilt mode.
I can discriminate the two cases via (( $+funcstack[(r)VCS_INFO_quilt] )).
My question is just whether the hook should be called by 'addon' quilt
mode in the first place. Should quilt mode look up hooks under the
context :vcs_info:git.quilt-addon+gen-applied-string:* instead?
^^^^^^^^^^^^
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author