From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13032 invoked by alias); 22 Oct 2015 12:43:06 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20807 Received: (qmail 21379 invoked from network); 22 Oct 2015 12:43:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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= X-Sasl-enc: gatzkBA9n4QSTrXI9/+M8WlJp77IWLgN3tbizsHP0IHq 1445517100 Date: Thu, 22 Oct 2015 12:31:38 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: vcs_info git quilt: gen-applied-string hook Message-ID: <20151022123138.GH7173@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) $ 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