|
|
@ -90,8 +90,8 @@ import org.eclipse.jgit.util.FileUtils; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class ResolveMerger extends ThreeWayMerger { |
|
|
|
public class ResolveMerger extends ThreeWayMerger { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* If the merge fails abnormally (means: not because of unresolved |
|
|
|
* If the merge fails (means: not stopped because of unresolved conflicts) |
|
|
|
* conflicts) this enum is used to explain why it failed |
|
|
|
* this enum is used to explain why it failed |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public enum MergeFailureReason { |
|
|
|
public enum MergeFailureReason { |
|
|
|
/** the merge failed because of a dirty index */ |
|
|
|
/** the merge failed because of a dirty index */ |
|
|
@ -629,22 +629,22 @@ public class ResolveMerger extends ThreeWayMerger { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @return lists paths causing this merge to fail abnormally (not because of |
|
|
|
* @return lists paths causing this merge to fail (not stopped because of a |
|
|
|
* a conflict). <code>null</code> is returned if this merge didn't |
|
|
|
* conflict). <code>null</code> is returned if this merge didn't |
|
|
|
* fail abnormally. |
|
|
|
* fail. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Map<String, MergeFailureReason> getFailingPaths() { |
|
|
|
public Map<String, MergeFailureReason> getFailingPaths() { |
|
|
|
return (failingPaths.size() == 0) ? null : failingPaths; |
|
|
|
return (failingPaths.size() == 0) ? null : failingPaths; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns whether this merge failed abnormally (i.e. not because of a |
|
|
|
* Returns whether this merge failed (i.e. not stopped because of a |
|
|
|
* conflict) |
|
|
|
* conflict) |
|
|
|
* |
|
|
|
* |
|
|
|
* @return <code>true</code> if an abnormal failure occurred, |
|
|
|
* @return <code>true</code> if a failure occurred, <code>false</code> |
|
|
|
* <code>false</code> otherwise |
|
|
|
* otherwise |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean failedAbnormally() { |
|
|
|
public boolean failed() { |
|
|
|
return failingPaths.size() > 0; |
|
|
|
return failingPaths.size() > 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|