From: Johannes Sixt <j.sixt@viscovery.net>
To: Matthew Cengia <mattcen@gmail.com>, git@vger.kernel.org
Subject: Re: Bizarre git merge behaviour
Date: Wed, 20 Nov 2013 08:20:30 +0100 [thread overview]
Message-ID: <528C62BE.7060803@viscovery.net> (raw)
In-Reply-To: <l6hbgg$oej$1@ger.gmane.org>
Am 11/20/2013 4:49, schrieb Matthew Cengia:
> The other day I was merging a feature branch (shown below as
> origin/22869-new-kernel) into my staging release (shown below as 'wtf'),
> and it *reverted* a bucket-load of changes I'd made on other branches
> which had been merged into staging before. I can't for the life of me
> work out why this happened, and would appreciate any ideas. Output below
> shows symptoms:
Not really. It's impossible to tell what's wrong if you
- show only ..topic
- but not topic..
- and you keep secret which of the changes is unexpected.
Perhaps you did the following:
- On one branch, you made a change A and then another change B that reverts A.
- On the other branch, you also made the same changes as A, but there is
no equivalent of B.
In this case, it is expected that the changes made by B (i.e. the reversal
of change A) are *NOT* in the merge, i.e., the changes of A survive. It
looks as if the merge reverted change B.
If that is not the case, it could be helpful that you pick one of the
files that contains an unexpected change and post the output of
git log --left-right --oneline wtf...origin/22869-new-kernel \
file/with/changes | cut -c1-70
-- Hannes
next prev parent reply other threads:[~2013-11-20 7:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 3:49 Bizarre git merge behaviour Matthew Cengia
2013-11-20 7:20 ` Johannes Sixt [this message]
2013-11-20 12:03 ` Matthew Cengia
2013-11-20 12:29 ` Johannes Sixt
2013-11-20 12:33 ` Matthew Cengia
2013-11-21 6:37 ` Matthew Cengia
2013-11-20 15:34 ` Jakub Narębski
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=528C62BE.7060803@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=mattcen@gmail.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).