aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java b/org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java
index 953d3a2cd2..3654ffd1e8 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java
@@ -90,6 +90,7 @@ import org.eclipse.jgit.treewalk.CanonicalTreeParser;
import org.eclipse.jgit.treewalk.NameConflictTreeWalk;
import org.eclipse.jgit.treewalk.TreeWalk;
import org.eclipse.jgit.treewalk.WorkingTreeIterator;
+import org.eclipse.jgit.treewalk.filter.TreeFilter;
import org.eclipse.jgit.util.FS;
import org.eclipse.jgit.util.TemporaryBuffer;
@@ -1012,8 +1013,11 @@ public class ResolveMerger extends ThreeWayMerger {
tw.addTree(headTree);
tw.addTree(mergeTree);
tw.addTree(buildIt);
- if (workingTreeIterator != null)
+ if (workingTreeIterator != null) {
tw.addTree(workingTreeIterator);
+ } else {
+ tw.setFilter(TreeFilter.ANY_DIFF);
+ }
if (!mergeTreeWalk(tw, ignoreConflicts)) {
return false;