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

commit-msg hook and merges

From
SHSøren Holm <sgh@sgh.dk>
Date
Jan 29, 2014, 10:38 UTC
Message-ID
<2590624.EqnRJC0pBH@koontz>
Hi. 

I'm running a speciallized commit-msg hook to help me fill out commit messages. This all works nicely for alle commits except for merges.

What I normally do to circumvent this is this :
$ git merge somebranch
<here I append to autogenerated message with my own text>
$ git commit --ammend

<I just save the message without changes and the commit-message is run throught my filter>

Is that intentional or an error ?
-- 
Søren Holm
Message 1 of 1 in “commit-msg hook and merges”
  1. Søren HolmJan 29, 2014

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.