git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Riesen <raa.lkml@gmail.com>
To: Michael Dressel <MichaelTiloDressel@t-online.de>
Cc: B.Steinbrink@gmx.de, git@vger.kernel.org
Subject: Re: git merge --no-commit <branch>; does commit
Date: Sun, 16 Dec 2007 11:53:11 +0100	[thread overview]
Message-ID: <20071216105311.GA2937@steel.home> (raw)
In-Reply-To: <alpine.LSU.0.99999.0712152124220.5151@castor.milkiway.cos>

Michael Dressel, Sat, Dec 15, 2007 21:33:20 +0100:
> On Sat, 15 Dec 2007, Alex Riesen wrote:
>> Michael Dressel, Sat, Dec 15, 2007 19:14:48 +0100:
>>>> Maybe. Or maybe you misunderstood the meaning of --squash, which also
>>>> is not a merge.
>>>
>>> Since "git merge --squash <branch>" does a merge of <branch> into the
>>> working tree why would you not call it a merge?
>>
>> Because merge, in Git language, means connection histories. That one
>> just mixes the text. That's different operation, kind of editing a
>> file.
>
> That's a nice clarification. In my case I wanted that "just mixes the text" 
> thing because I did aggressively do commits during development trying out 
> slightly different approaches and being able to go back to compare them. 
> These different games are not interesting to keep in the history once a 
> good solution has been found.

In this case --squash is almost right. "rebase -i" (interactive rebase)
still better: it'll allow you rebuild the development history in a
more fine-grained way. It can reorder commits, "mix" them together,
edit commit messages or just delete them altogether.
Try it, by the look of your situation you'll like it. Actually, it is
exactly why Johannes wrote it.

      reply	other threads:[~2007-12-16 10:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-13 21:01 git merge --no-commit <branch>; does commit Michael Dressel
2007-12-13 21:19 ` Alex Riesen
2007-12-13 21:23   ` Alex Riesen
2007-12-13 21:28   ` Michael Dressel
2007-12-14  7:49     ` Alex Riesen
2007-12-15 18:14       ` Michael Dressel
2007-12-15 18:26         ` Björn Steinbrink
2007-12-15 19:18         ` Jakub Narebski
2007-12-15 20:22           ` Michael Dressel
2007-12-15 20:57             ` Jakub Narebski
2007-12-15 21:15               ` Michael Dressel
2007-12-15 19:37         ` Alex Riesen
2007-12-15 20:33           ` Michael Dressel
2007-12-16 10:53             ` Alex Riesen [this message]

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=20071216105311.GA2937@steel.home \
    --to=raa.lkml@gmail.com \
    --cc=B.Steinbrink@gmx.de \
    --cc=MichaelTiloDressel@t-online.de \
    --cc=git@vger.kernel.org \
    /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).