git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Shawn O. PearceNext: Junio C Hamano
Message 2 of 4 in “Teach receive-pack to run pre-receive/post-receive hooks”
  1. 5/5 Teach receive-pack to run pre-receive/post-receive hooksShawn O. Pearce, Mar 7, 2007
  2. Linus TorvaldsMar 7, 2007
  3. Junio C HamanoMar 8, 2007
  4. Shawn O. PearceMar 8, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.