Package org.projectnessie.model
Interface MergeResponse
@Immutable
public interface MergeResponse
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDeprecated.static interface -
Method Summary
Modifier and TypeMethodDescriptionCommit-ID of the identified merge base, only returned for a merge operation.Details of all keys encountered during the merge or transplant operation.Head commit-ID of the target branch identified by the merge or transplant operation.The expected commit-ID of the target branch, as specified by the caller.Commit-ID of the target branch after the merge/transplant operation.Deprecated.Name of the target branch.Deprecated.default booleanIndicates whether the merge or transplant operation has been applied.default booleanIndicates whether the merge or transplant operation was successful without any conflicts.
-
Method Details
-
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
Commit-ID of the target branch after the merge/transplant operation. -
getCommonAncestor
Commit-ID of the identified merge base, only returned for a merge operation.Note: earlier Nessie versions only supported merging using the common ancestor, so only considering the direct commit parents (predecessors). Nessie identifies the "nearest" merge-base singe version 0.61.0 (with the new storage model), and allows "incremental merges". Since renaming a public API fields is not good practice, this field represents the merge-base.
-
getTargetBranch
String getTargetBranch()Name of the target branch. -
getEffectiveTargetHash
String getEffectiveTargetHash()Head commit-ID of the target branch identified by the merge or transplant operation. -
getExpectedHash
The expected commit-ID of the target branch, as specified by the caller. -
getSourceCommits
Deprecated. -
getTargetCommits
Deprecated. -
getDetails
List<MergeResponse.ContentKeyDetails> getDetails()Details of all keys encountered during the merge or transplant operation.
-