Package org.projectnessie.versioned
Interface MergeResult<COMMIT>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMergeResult.ConflictTypeDeprecated.static interfaceMergeResult.KeyDetails
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static <COMMIT extends Hashable>
org.projectnessie.versioned.ImmutableMergeResult.Builder<COMMIT>builder()HashgetCommonAncestor()Commit-ID of the identified common ancestor, only returned for a merge operation.java.util.List<COMMIT>getCreatedCommits()List of new commits that where created and added to the target branch.java.util.Map<org.projectnessie.model.ContentKey,MergeResult.KeyDetails>getDetails()Details of all keys encountered during the merge or transplant operation.HashgetEffectiveTargetHash()Head commit-ID of the target branch identified by the merge or transplant operation.HashgetExpectedHash()The expected commit-ID of the target branch, as specified by the caller.HashgetResultantTargetHash()Commit-ID of the target branch after the merge/transplant operation.java.util.List<COMMIT>getSourceCommits()Deprecated.NamedRefgetSourceRef()The source ref.BranchNamegetTargetBranch()Name of the target branch.java.util.List<COMMIT>getTargetCommits()Deprecated.default booleanwasApplied()Indicates whether the merge or transplant operation has been applied.default booleanwasSuccessful()Indicates whether the merge or transplant operation was successful without any conflicts.-
Methods inherited from interface org.projectnessie.versioned.Result
getResultType
-
-
-
-
Method Detail
-
wasApplied
@Default default boolean wasApplied()
Indicates whether the merge or transplant operation has been applied.
-
wasSuccessful
@Default default boolean wasSuccessful()
Indicates whether the merge or transplant operation was successful without any conflicts.
-
getResultantTargetHash
@Nullable @Nullable Hash getResultantTargetHash()
Commit-ID of the target branch after the merge/transplant operation.
-
getCommonAncestor
@Nullable @Nullable Hash getCommonAncestor()
Commit-ID of the identified common ancestor, only returned for a merge operation.
-
getSourceRef
NamedRef getSourceRef()
The source ref.
-
getTargetBranch
BranchName getTargetBranch()
Name of the target branch.
-
getEffectiveTargetHash
Hash getEffectiveTargetHash()
Head commit-ID of the target branch identified by the merge or transplant operation.
-
getExpectedHash
@Nullable @Nullable Hash getExpectedHash()
The expected commit-ID of the target branch, as specified by the caller.
-
getSourceCommits
@Deprecated java.util.List<COMMIT> getSourceCommits()
Deprecated.List of commit-IDs to be merged or transplanted.
-
getTargetCommits
@Nullable @Nullable @Deprecated java.util.List<COMMIT> getTargetCommits()
Deprecated.List of commit-IDs betweengetExpectedHash()andgetEffectiveTargetHash(), if the expected hash was provided.
-
getCreatedCommits
java.util.List<COMMIT> getCreatedCommits()
List of new commits that where created and added to the target branch.The returned list will always be empty if the merge or transplant operation failed. It will also always be empty in dry-run mode. Furthermore, it will also be empty if the operation resulted in a fast-forward merge or transplant, because no new commit is created in this case. Otherwise, if commits were squashed, the returned list will contain exactly one element: the squashed commit; conversely, if individual commits were preserved, the list will generally contain as many commits as there were source commits to rebase (unless some source commits were filtered out).
The REST API does not expose this property currently; it is used by the Nessie events notification system.
-
getDetails
java.util.Map<org.projectnessie.model.ContentKey,MergeResult.KeyDetails> getDetails()
Details of all keys encountered during the merge or transplant operation.
-
builder
static <COMMIT extends Hashable> org.projectnessie.versioned.ImmutableMergeResult.Builder<COMMIT> builder()
-
-