[vcsh] hook system for vcsh

Dieter Plaetinck dieter at plaetinck.be
Mon Jan 9 12:01:52 CET 2012

On Mon, 09 Jan 2012 11:55:49 +0100
Vincent Demeester <vincent at demeester.fr> wrote:

> Hi,
> > vdemeester wrote:
> >> Only the ones that have an executable bit will be sourced.
> > setting executable flag to make it become sourced seems weird.
> > especially because +x is not even needed if it's sourced.
> > i would say merely the fact that a file is stored within
> > $XDG_CONFIG_HOME/vcsh/hook.d/init/ qualifies it as a hook. nothing 
> > more
> > is needed. no +x flag.
> I did this to be able to write non-active hook (example hook or no
> more active ones but that I'd like to keep for… posterity :-p).
> Git hooks are only active when the x bits are on (but they might be 
> called,
> not sourced).

i would rather rename a file to <name>.disabled.sh or something, instead of setting executable flags
on files which are not supposed to be executed.

More information about the vcs-home mailing list