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

Re: [PATCH] merge: Run commit-msg hook

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 26, 2016, 21:12 UTC
Message-ID
<xmqq4m7cyuhj.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<alpine.DEB.2.20.1607261614020.14111@virtualbox>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 5 quoted lines
> FWIW I dug out the original submission:
> http://thread.gmane.org/gmane.comp.version-control.git/151297/focus=151435
>
> It seems that there was no discussion about the commit-msg. Which makes me
> wonder why nobody thought of this.
I actually think it was a mistaken argument.

We could have devised a mechanism to prevent "git commit" that concludes a conflicted "git merge" from calling the hook to resolve the inconsistency, and the solution would have been equally valid.

I'd rather not make things worse by repeating that same mistake. If we were to change anything, we should be adding prepare-merge-msg as you suggested earlier and weaning people off of the current behaviour that was added by mistake.

Thanks.
Previous: Johannes SchindelinNext: Junio C Hamano
Message 5 of 7 in “merge: Run commit-msg hook”
  1. merge: Run commit-msg hookOrgad Shaneh, Jul 26, 2016
  2. Johannes SchindelinJul 26, 2016
  3. Orgad ShanehJul 26, 2016
  4. Johannes SchindelinJul 26, 2016
  5. Junio C HamanoJul 26, 2016
  6. Junio C HamanoJul 26, 2016
  7. Johannes SchindelinJul 27, 2016

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.