From: Anders Waldenborg <anders@0x63•nu>
To: Johannes Schindelin <Johannes.Schindelin@gmx•de>
Cc: git@vger•kernel.org, Alexander Potashev <aspotashev@gmail•com>,
Marc Weber <marco-oweber@gmx•de>,
Rogan Dawes <lists@dawes•za.net>,
martin f krafft <madduck@madduck•net>
Subject: Re: What about allowing multiple hooks?
Date: Wed, 21 Jan 2009 22:30:13 +0100 [thread overview]
Message-ID: <497793E5.7090107@0x63.nu> (raw)
In-Reply-To: <alpine.DEB.1.00.0901212206430.3586@pacific.mpi-cbg.de>
Johannes Schindelin wrote:
>> I currently use configvalues to specify which hooks to run. For example
>> this is how my post-receive looks:
>>
>> data=$(cat)
>> git config --get-all hooks.post-receive.hook | while read hook; do
>> $hook <<__EOF__
>> "$data"
>> __EOF__
>> done
>
> I wonder why you don't do the obvious thing:
Because I wanted to be able to do things like this:
git config -add hooks.post-receive.hook \
"sh hooks/buildbot 192.168.99.9:9989"
git config -add hooks.post-receive.hook \
"sh hooks/buildbot 192.168.99.9:9988"
So, the thing I initially wanted to solve was "multiple instances" of
the same hook.
Then when I found this thread I saw that the richer meta information
needed to implement multiple hooks with sane semantics could be done
with the config values.
anders
next prev parent reply other threads:[~2009-01-21 21:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-21 13:38 What about allowing multiple hooks? Marc Weber
2008-11-21 13:55 ` martin f krafft
2008-11-21 14:56 ` Rogan Dawes
2009-01-03 23:32 ` Alexander Potashev
2009-01-04 10:01 ` Junio C Hamano
2009-01-21 20:35 ` Anders Waldenborg
2009-01-21 21:10 ` Johannes Schindelin
2009-01-21 21:30 ` Anders Waldenborg [this message]
2009-01-21 21:50 ` Johannes Schindelin
2009-01-22 9:57 ` Anders Waldenborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=497793E5.7090107@0x63.nu \
--to=anders@0x63$(echo .)nu \
--cc=Johannes.Schindelin@gmx$(echo .)de \
--cc=aspotashev@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=lists@dawes$(echo .)za.net \
--cc=madduck@madduck$(echo .)net \
--cc=marco-oweber@gmx$(echo .)de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox