zsh-users
 help / color / mirror / code / Atom feed
* vcs_info git quilt: gen-applied-string hook
@ 2015-10-22 12:31 Daniel Shahaf
  0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2015-10-22 12:31 UTC (permalink / raw)
  To: zsh-users

$ 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-22 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22 12:31 vcs_info git quilt: gen-applied-string hook Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).