public class MergeCommandParameters extends AbstractMergeCommandParameters
| Modifier and Type | Class and Description |
|---|---|
static class |
MergeCommandParameters.AbstractMergeBuilder<B extends MergeCommandParameters.AbstractMergeBuilder<B>> |
static class |
MergeCommandParameters.Builder |
AbstractMergeCommandParameters.AbstractBuilder<B extends AbstractMergeCommandParameters.AbstractBuilder<B>>NOT_BLANK| Modifier | Constructor and Description |
|---|---|
protected |
MergeCommandParameters(MergeCommandParameters.AbstractMergeBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFromBranch() |
String |
getFromCommitId()
Retrieves the specific commit that should be merged into the
target branch. |
Repository |
getFromRepository()
|
String |
getToBranch() |
String |
getToCommitId()
Retrieves the specific commit that the
target branch should be at. |
boolean |
hasFromRepository()
Retrieves a flag indicating whether these parameters include a
from repository,
indicating the merge is cross-repository, where the to repository is provided when requesting the merge command
rather than in these parameters. |
getAuthor, getCommitSummaries, getCommitter, getMessage, getStrategyId, isDryRunaddIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlankprotected MergeCommandParameters(MergeCommandParameters.AbstractMergeBuilder builder)
@Nullable public String getFromCommitId()
target branch.
If this value is not provided, the current tip of the source branch is
merged into the target. This should be used with caution, as it may result in the system performing a
different merge than intended if the source branch changes between when the merge is requested and when
it is performed.
null to merge the current tip of the
branch@Nullable public Repository getFromRepository()
null if the from and to branches are in the same repository@Nullable public String getToCommitId()
target branch should be at.
If this value is provided and the current tip of target branch does not match
this value, the merge will not be performed and an exception will be thrown.
If this value is not provided, the merge will occur on top of the current tip of the target branch.
null to perform the merge
on top of the current tip of the target branchpublic boolean hasFromRepository()
from repository,
indicating the merge is cross-repository, where the to repository is provided when requesting the merge command
rather than in these parameters.true if a from repository is set; otherwise, falseCopyright © 2024 Atlassian. All rights reserved.