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

Re: [PATCH] Add post-merge hook.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 30, 2007, 23:07 UTC
Message-ID
<7v7inc7hao.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<11885136172952-git-send-email-jjengla@sandia.gov>
jjengla@sandia.gov writes:
Show 7 quoted lines
> From: Josh England <jjengla@sandia.gov>
>
> This adds a post-merge hook that will run after `git pull` operations
> if enabled.  The hook is passed no arguments and cannot affect the
> outcome of a merge.
>
> Signed-off-by: Josh England <jjengla@sandia.gov>
Thanks for your patch.
Two questions.
 * Do you want to run the post-merge hook even for a squash
   merge?
 * After resolving a conflicted merge, you would conclude it
   with "git commit"; don't you want to have the same hook apply
   at the commit time, or is that what you expect the user to
   deal with with post-commit hook?
And two requests and a half.
 - We would want a new test in the test suite for this, to make
   sure that later changes by others would not break this new
   feature you would depend upon.
 - You described _what_ the patch and the new feature do in the
   log message and in the documentation.
   You need to also explain _why_ somebody might want to have
   such a hook in his repository.
   . In the documentation, you would want to make the reader
     realize "aha, this is something that would help me" with an
     example.
   . In the log message, you would want to make sure other
     people understand why this new feature was added, what the
     design consideration were at the point of the feature was
     added.
   The latter is important to me personally.  I want to have
   something better than "this change does not break anything
   existing, and it is something somebody wants to get added, so
   while I can not image the exact use scenario why anybody
   would want to use such a hook I'd apply the change" to
   convince myself.
 - We are deep in feature-freeze for 1.5.3; I'd appreciate a
   resend for any patch that is not a bugfix / documentation
   update after 1.5.3 final.
Previous: jjengla@sandia.govNext: Josh England
Message 2 of 9 in “Add post-merge hook.”
  1. Add post-merge hook.jjengla@sandia.gov, Aug 30, 2007
  2. Junio C HamanoAug 30, 2007
  3. Josh EnglandSep 4, 2007
  4. Junio C HamanoSep 4, 2007
  5. Josh EnglandSep 4, 2007
  6. Junio C HamanoSep 4, 2007
  7. Josh EnglandSep 4, 2007
  8. Steven GrimmSep 4, 2007
  9. Josh EnglandSep 4, 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.