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

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

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Jan 25, 2007, 16:07 UTC
Message-ID
<20070125160714.GA6358@fieldses.org>
In-Reply-To
<17848.54065.631799.755255@lisa.zopyra.com>
On Thu, Jan 25, 2007 at 09:56:33AM -0600, Bill Lear wrote:
Show 19 quoted lines
> I have developed a habit of using my SCM to provide local backup of my
> daily (hourly) work.  I often will work to a stopping point and commit
> my work, without any real coherence to the commit --- a sort of
> checkpoint.  These I call "weenie commits" because they are weenie-ish,
> unimportant in the larger scheme of things.
> 
> When developing with others, I would like to be able to work in this
> way, tidily keeping my stuff tucked away in my SCM system, and then
> when I am ready to share, to convey to my peers what they need to
> know about my work, and not the 10,000 weenie commit messages that
> may be associated with my work.
> 
> 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?
I tend to do something vaguely like:
	git checkout -b dirtywork origin

Then make a bunch of commits as you describe above--poorly commented, not necessarily logically split up, etc.--then when it's ready,

	git checkout -b cleanwork origin
	git diff cleanwork..dirtywork

Examine the diff, figure out which change should go logically first, apply that one change and commit, and then again run

	git diff cleanwork..dirtywork

Repeat until the diff is empty (except maybe for a few improvements I noticed as I went along). Then finally

	git push publicrepo cleanwork:master
	git branch -D dirtywork
Or something like that.
--b.
Previous: Santi BéjarNext: Seth Falcon
Message 3 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.