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

Re: Groups of commits

From
Tay Ray Chuan <rctay89@gmail.com>
Date
Apr 28, 2010, 05:25 UTC
Message-ID
<r2jbe6fef0d1004272225rd61ef84axe86ba45a0b352a8@mail.gmail.com>
In-Reply-To
<87sk6ge312.fsf@troilus.org>
On Wed, Apr 28, 2010 at 10:15 AM, Michael Poole <mdpoole@troilus.org> wrote:
Show 22 quoted lines
> 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
Previous: Michael PooleNext: Alex Riesen
Message 4 of 6 in “Groups of commits”
  1. John TapsellApr 28, 2010
  2. Jeff KingApr 28, 2010
  3. Michael PooleApr 28, 2010
  4. Tay Ray ChuanApr 28, 2010
  5. Alex RiesenApr 28, 2010
  6. Avery PennarunApr 28, 2010

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.