git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git merge a b when a == b but neither == o is always a successful merge?
@ 2014-11-17 18:39 Daniel Hagerty
  2014-11-17 20:53 ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Hagerty @ 2014-11-17 18:39 UTC (permalink / raw)
  To: git

    Given a repository setup thusly:

$ git --version
git version 2.2.0.rc2

git init .

echo '0.0' > version
git add version
git commit -m "master"
for i in a b ; do
  git checkout -b $i master

  echo '0.1' > version
  git commit -a -m "leg $i"
done

git checkout -b c master
echo '0.2' > version
git commit -a -m "leg c"

git checkout --detach a


"git merge c" produces the expected edit conflict.

"git merge b" produces a successful merge, as both branches perform
the "same" work.

For the body of content in question, this is a merge conflict.  Git
seems to have the hard-coded assumption otherwise.  I had to change
three source files to get the result I expected, and wasn't seeing
any indications of parameterization.

Am I missing some means of getting the results I need?  Thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-11-24 19:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17 18:39 git merge a b when a == b but neither == o is always a successful merge? Daniel Hagerty
2014-11-17 20:53 ` Jeff King
2014-11-17 22:21   ` Daniel Hagerty
2014-11-21 18:15     ` Jeff King
2014-11-21 18:51       ` Junio C Hamano
2014-11-24 19:36         ` Daniel Hagerty

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).