git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Francis Moreau <francis.moro@gmail.com>
To: Jeff King <peff@peff.net>
Cc: Michael Gaber <Michael.Gaber@gmx.net>, git@vger.kernel.org
Subject: Re: question about a merge result
Date: Thu, 30 Apr 2009 17:05:19 +0200	[thread overview]
Message-ID: <38b2ab8a0904300805j5ce19617mdda3254c37d06d38@mail.gmail.com> (raw)
In-Reply-To: <20090430142635.GB23550@coredump.intra.peff.net>

On Thu, Apr 30, 2009 at 4:26 PM, Jeff King <peff@peff.net> wrote:
> On Thu, Apr 30, 2009 at 02:34:43PM +0200, Michael Gaber wrote:
>
>> > So merging 'b1' into master removed the B file even if in branch 'b1'
>> > I restored it.
>> >
>> > Could anybody explain me why this is the correct behaviour and why not
>> > file 'B' is not restored as it was done in branch 'b1' ?
>>
>> well, I'd say the thing is, that in b1 there is no change at all to the
>> tree anymore, so when applied to master (without B) there is no b restored
>
> That is exactly it. Git's 3-way merge doesn't look at the intervening
> history at all. It looks _only_ at the two endpoints and their
> merge-base (well, that is a bit of a simplification, as there may be
> multiple merge-bases, but it is what is happening here).
>

Well, obviously it's how git works since it's what I got.

But the question was more about if the cortectness of the end result:
should 'B' removed after the merge.

IOW if someone works on its own branch remove B file and thought it
was a bad idea and restore it whereas another person remove B file but
miss the fact that it was a bad idea, does the merge should silently
remove B file ?

-- 
Francis

  reply	other threads:[~2009-04-30 15:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-30 12:21 question about a merge result Francis Moreau
2009-04-30 12:34 ` Michael Gaber
2009-04-30 14:26   ` Jeff King
2009-04-30 15:05     ` Francis Moreau [this message]
2009-04-30 15:39       ` Björn Steinbrink
2009-04-30 15:42       ` Jeff King
2009-05-01 16:27       ` Daniel Barkalow

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=38b2ab8a0904300805j5ce19617mdda3254c37d06d38@mail.gmail.com \
    --to=francis.moro@gmail.com \
    --cc=Michael.Gaber@gmx.net \
    --cc=git@vger.kernel.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).