]> source.dussan.org Git - jgit.git/commit
Added merge strategy RESOLVE 26/1226/7
authorChristian Halstrick <christian.halstrick@sap.com>
Thu, 12 Aug 2010 13:19:18 +0000 (15:19 +0200)
committerChristian Halstrick <christian.halstrick@sap.com>
Mon, 30 Aug 2010 23:21:54 +0000 (01:21 +0200)
commit45e79a526c7ffebaf8e4758a6cb6b7af05716707
tree560ccec4a4fb4abe4cdcc2fc294078baa83ee082
parent77f79659f575dd8b8739707e6c8ddba51d765c78
Added merge strategy RESOLVE

This adds the first merge strategy to JGit which does real
content-merges if necessary. The new merge strategy "resolve" takes as
input three commits: a common base, ours and theirs. It will simply takeover
changes on files which are only touched in ours or theirs. For files
touched in ours and theirs it will try to merge the two contents
knowing taking into account the specified common base.

Rename detection has not been introduced for now.

Change-Id: I49a5ebcdcf4f540f606092c0f1dc66c965dc66ba
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/MergeCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/MergeResult.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java
org.eclipse.jgit/src/org/eclipse/jgit/merge/MergeStrategy.java
org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/merge/StrategyResolve.java [new file with mode: 0644]