public class MergeTip
extends java.lang.Object
The current tip of a MergeTip
may be null if the merge operation is against an unborn
branch, and has not yet been attempted. This is distinct from a null MergeTip
instance,
which may be used to indicate that a merge failed or another error state.
Constructor and Description |
---|
MergeTip(CodeReviewCommit initialTip,
java.util.Collection<CodeReviewCommit> toMerge) |
Modifier and Type | Method and Description |
---|---|
CodeReviewCommit |
getCurrentTip() |
CodeReviewCommit |
getInitialTip() |
java.util.Map<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.ObjectId> |
getMergeResults()
The merge results of all the merges of this merge operation.
|
void |
moveTipTo(CodeReviewCommit newTip,
org.eclipse.jgit.lib.ObjectId mergedFrom)
Moves this MergeTip to newTip and appends mergeResult.
|
public MergeTip(CodeReviewCommit initialTip, java.util.Collection<CodeReviewCommit> toMerge)
initialTip
- tip before the merge operation; may be null, indicating an unborn branch.toMerge
- list of commits to be merged in merge operation; may not be null or empty.public CodeReviewCommit getInitialTip()
public void moveTipTo(CodeReviewCommit newTip, org.eclipse.jgit.lib.ObjectId mergedFrom)
newTip
- The new tip; may not be null.mergedFrom
- The result of the merge of newTip
.public java.util.Map<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.ObjectId> getMergeResults()
public CodeReviewCommit getCurrentTip()