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

Re: [PATCH] post-checkout hook, and related docs and tests

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 25, 2007, 21:29 UTC
Message-ID
<7v4phi5t98.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1190738473.6078.102.camel@beauty>
"Josh England" <jjengla@sandia.gov> writes:
> So this leads to my next question:  Should the post-merge patch be
> brought in under this same umbrella to form a single post-checkout hook,
> or should it stay a separate hook?

I think it is called would be inconvenient for the callee if you call the same hook without telling the hook script why it is called, so if you go in the unification route the caller of the unified hook needs to supply an extra parameter and existing hooks if any need to be updated --- neither sounds like a very idea. The writer of the hooks however can choose to call one from the other if he wants the same action for both hooks, so it looks to me that separate hooks for separate purposes is the way to go.

Previous: Josh EnglandNext: Josh England
Message 12 of 16 in “post-checkout hook, and related docs and tests”
  1. post-checkout hook, and related docs and testsroot, Sep 21, 2007
  2. Josh EnglandSep 21, 2007
  3. Junio C HamanoSep 22, 2007
  4. Josh EnglandSep 24, 2007
  5. Junio C HamanoSep 24, 2007
  6. Josh EnglandSep 24, 2007
  7. Junio C HamanoSep 24, 2007
  8. Josh EnglandSep 24, 2007
  9. Junio C HamanoSep 24, 2007
  10. Andreas EricssonSep 25, 2007
  11. Josh EnglandSep 25, 2007
  12. Junio C HamanoSep 25, 2007
  13. Josh EnglandSep 25, 2007
  14. Dmitry PotapovSep 26, 2007
  15. Josh EnglandSep 26, 2007
  16. Josh EnglandSep 24, 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.