]> source.dussan.org Git - jgit.git/commit
Fixed Merge Algorithm regarding concurrent file creations 39/1939/3
authorChristian Halstrick <christian.halstrick@sap.com>
Thu, 2 Dec 2010 12:11:21 +0000 (13:11 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Thu, 2 Dec 2010 12:15:59 +0000 (13:15 +0100)
commitdeabacc420bd009a2bbecceeb9f1c432ec3dfc0a
treefef0c04441bb5bab42a6598c1c251c68ba36c0d5
parentd29b5db695225ed9629b028f99070bd182320b0f
Fixed Merge Algorithm regarding concurrent file creations

When in OURS and THEIRS a new file is created we want a conflict
when the two contents differ. If on two branches the same file
with the same content is created this should not be a conflict.
But: the current merge algorithm is throwing NPEs in this case.
Fix this by choosing an empty RawText as common base if the
base is empty.

Change-Id: I21cb23f852965b82fb82ccd66ec961c7edb3ac3d
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/MergeCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/RawText.java
org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java