Re: [PATCH 5/5] Teach receive-pack to run pre-receive/post-receive hooks
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Mar 7, 2007, 23:31 UTC
- Message-ID
- <Pine.LNX.4.64.0703071522030.5963@woody.linux-foundation.org>
- In-Reply-To
- <20070307215205.GE28649@spearce.org>
On Wed, 7 Mar 2007, Shawn O. Pearce wrote:
Show 5 quoted lines
> > To help this situation I am introducing two new hooks to the > receive-pack flow: pre-receive and post-receive. These new hooks > are invoked only once per receive-pack execution and are passed > three arguments per ref (refname, old-sha1, new-sha1).
Can you give a concise explanation of how "pre-receive" differ from the old "update", and how does "post-receive" differ from the old "post-update"?
Linus