git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tay Ray Chuan <rctay89@gmail.com>
To: Michael Poole <mdpoole@troilus.org>
Cc: John Tapsell <johnflux@gmail.com>, Jeff King <peff@peff.net>,
	Git List <git@vger.kernel.org>
Subject: Re: Groups of commits
Date: Wed, 28 Apr 2010 13:25:39 +0800	[thread overview]
Message-ID: <r2jbe6fef0d1004272225rd61ef84axe86ba45a0b352a8@mail.gmail.com> (raw)
In-Reply-To: <87sk6ge312.fsf@troilus.org>

On Wed, Apr 28, 2010 at 10:15 AM, Michael Poole <mdpoole@troilus.org> wrote:
> John Tapsell writes:
>
>> Hi all,
>>
>>   In my work place, we have a lot of strict rules to get something
>> committed.  The code has to pass against a large test suite, it has to
>> be tested on different hardware, and so on.
>>
>>   The problem is that it forces everyone to have one single large
>> commit for a week's work.  All the intermediate stages get squashed
>> and that history forever lost.
>>
>>   It would be nice to have a commit in the repository, treated as a
>> single commit for all purposes, but then be able to split it into
>> multiple commits if necessary.
>>
>>   Any ideas?
>
> Isn't that what topic branches are for?  When development is done on a
> short-lived branch (hopefully one with a descriptive name), the only
> commit that needs to go through that process is the merge onto the
> integration branch.

Just to add to the "merge in topic branches" idea - if you find that
the commits are trivially fast-forwardable, you can still add a short
note/cover letter with

  git merge --no-ff -m "Added in foo's work" <branch/commit>

-- 
Cheers,
Ray Chuan

  reply	other threads:[~2010-04-28  5:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-28  1:59 Groups of commits John Tapsell
2010-04-28  2:14 ` Jeff King
2010-04-28  2:15 ` Michael Poole
2010-04-28  5:25   ` Tay Ray Chuan [this message]
2010-04-28  8:05     ` Alex Riesen
2010-04-28 12:46       ` Avery Pennarun

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=r2jbe6fef0d1004272225rd61ef84axe86ba45a0b352a8@mail.gmail.com \
    --to=rctay89@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=johnflux@gmail.com \
    --cc=mdpoole@troilus.org \
    --cc=peff@peff.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).