From: "J. Bruce Fields" <bfields@fieldses.org>
To: Bill Lear <rael@zopyra.com>
Cc: git@vger.kernel.org
Subject: Re: How to change merge message ("weenie commits")
Date: Thu, 25 Jan 2007 11:07:14 -0500 [thread overview]
Message-ID: <20070125160714.GA6358@fieldses.org> (raw)
In-Reply-To: <17848.54065.631799.755255@lisa.zopyra.com>
On Thu, Jan 25, 2007 at 09:56:33AM -0600, Bill Lear wrote:
> 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.
next prev parent reply other threads:[~2007-01-25 16:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-25 15:56 How to change merge message ("weenie commits") Bill Lear
2007-01-25 16:05 ` Santi Béjar
2007-01-25 16:07 ` J. Bruce Fields [this message]
2007-01-25 16:12 ` Seth Falcon
2007-01-25 16:16 ` Karl Hasselström
2007-01-26 12:54 ` Jakub Narebski
2007-01-25 22:54 ` Junio C Hamano
2007-01-26 23:24 ` Robin Rosenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070125160714.GA6358@fieldses.org \
--to=bfields@fieldses.org \
--cc=git@vger.kernel.org \
--cc=rael@zopyra.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.