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

Re: How to change merge message ("weenie commits")

From
Seth Falcon <sethfalcon@gmail.com>
Date
Jan 25, 2007, 16:12 UTC
Message-ID
<m2veiv9jbp.fsf@ziti.local>
In-Reply-To
<17848.54065.631799.755255@lisa.zopyra.com>
Bill Lear <rael@zopyra.com> writes:
Show 7 quoted lines
> So, when I merge my topic branch onto master, for example, I'd like
> the commit message to be something more thoughtful than the
> "checkpoint 1", "checkpoint 2", "fix typo", "redo sort algorithm",
> etc., etc., and be more like a short set of release notes, a summary
> of what all has been accomplished.
>
> Do others run into this and perhaps have a good solution?

Suppose you do your daily work on branch weenie, then one way would be:

  git format-patch -k master..weenie
  git checkout master
  git apply 00*.patch
  ## review, then git add and git commit where you would write a long
  ## commit message.

One nice thing about this workflow is that you can easily decide if you want one single commit or a few commits to group logical groups of the patch files.

+ seth
Previous: J. Bruce FieldsNext: Karl Hasselström
Message 4 of 8 in “How to change merge message ("weenie commits")”
  1. Bill LearJan 25, 2007
  2. Santi BéjarJan 25, 2007
  3. J. Bruce FieldsJan 25, 2007
  4. Seth FalconJan 25, 2007
  5. Karl HasselströmJan 25, 2007
  6. Jakub NarebskiJan 26, 2007
  7. Junio C HamanoJan 25, 2007
  8. Robin RosenbergJan 26, 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.