* git branch based hook desigh
@ 2013-03-18 4:27 Joydeep Bakshi
2013-03-20 13:46 ` Magnus Bäck
0 siblings, 1 reply; 2+ messages in thread
From: Joydeep Bakshi @ 2013-03-18 4:27 UTC (permalink / raw)
To: git@vger.kernel.org
Hello list,
I have implemented git pre-received hook successfully. And it works on the repo level.
Could anyone suggest how to call branch level hook please ?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git branch based hook desigh
2013-03-18 4:27 git branch based hook desigh Joydeep Bakshi
@ 2013-03-20 13:46 ` Magnus Bäck
0 siblings, 0 replies; 2+ messages in thread
From: Magnus Bäck @ 2013-03-20 13:46 UTC (permalink / raw)
To: Joydeep Bakshi; +Cc: git
On Monday, March 18, 2013 at 00:27 EDT,
Joydeep Bakshi <joydeep.bakshi@infoservices.in> wrote:
> I have implemented git pre-received hook successfully. And it works on
> the repo level.
> Could anyone suggest how to call branch level hook please ?--
If you need to have different hook behaviors depending on the ref that's
about to be updated, just put a conditional in the hook. You get the
name(s) of ref(s) to be updated on stdin.
--
Magnus Bäck
baeck@google.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-20 13:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-18 4:27 git branch based hook desigh Joydeep Bakshi
2013-03-20 13:46 ` Magnus Bäck
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).