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() |
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 repositorypublic 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 © 2019 Atlassian. All rights reserved.