git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cory Sharp <cory.sharp@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [Q] merge squash unexpected conflicts
Date: Wed, 13 May 2009 23:34:24 -0700	[thread overview]
Message-ID: <bb9d69200905132334m7a4e3a4akde3529abeab5a09@mail.gmail.com> (raw)
In-Reply-To: <7veiusz45w.fsf@alter.siamese.dyndns.org>

On Wed, May 13, 2009 at 9:42 PM, Junio C Hamano <gitster@pobox.com> wrote:
> What's your point?

I am asking for help and understanding.

> WIth --squash, the tree and the index state becomes the same as if a real
> merge happened.  But the merge history is discarded with --squash.  It is
> a simulation of a merge in CVS and SVN (before they added "merge tracking").
>
> If you want support for repeated merges by merge tracking, you do not want
> todiscard the merge history by using --squash.

Why doesn't --squash do merge tracking?  The help didn't indicate that
it doesn't, and I don't understand why it shouldn't -- since I *could*
track the previous merge point manually and do "git diff --binary
PREV_MERGE..NEXT_MERGE | git apply -" to do the merge myself.

But since that's me manually performing merge tracking, why doesn't
"merge --squash" track like just "merge" does?  If I didn't want
tracking, I would expect to use some other command than "git merge
[options]".

Thanks for your help,
Cory

  reply	other threads:[~2009-05-14  6:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bb9d69200905131706m61b0dda1xc347ca2e719ec142@mail.gmail.com>
2009-05-14  2:42 ` [Q] merge squash unexpected conflicts Cory Sharp
2009-05-14  3:21   ` Junio C Hamano
2009-05-14  3:57     ` Cory Sharp
2009-05-14  4:42       ` Junio C Hamano
2009-05-14  6:34         ` Cory Sharp [this message]
2009-05-14  6:42           ` Junio C Hamano
2009-05-14  6:54             ` Cory Sharp
2009-05-14  7:01               ` Michael Radziej
2009-05-14 18:25                 ` Cory Sharp
2009-05-14 12:17       ` Michael J Gruber
2009-05-14 14:47         ` Cory Sharp

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=bb9d69200905132334m7a4e3a4akde3529abeab5a09@mail.gmail.com \
    --to=cory.sharp@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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 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).