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 initial,
java.util.Collection<CodeReviewCommit> toMerge) |
Modifier and Type | Method and Description |
---|---|
CodeReviewCommit |
getCurrentTip() |
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 initial, java.util.Collection<CodeReviewCommit> toMerge)
initial
- Tip before the merge operation; may be null, indicating an
unborn branch.toMerge
- List of CodeReview commits to be merged in merge operation;
may not be null or empty.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()