Package com.atlassian.bitbucket.scm
Class RevertCommandParameters
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.scm.AbstractCommandParameters
com.atlassian.bitbucket.scm.RevertCommandParameters
Parameters to perform a
revert
operation.- Since:
- 8.13
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Method Summary
Modifier and TypeMethodDescriptionThe tip of the branch that will be used as the parent of the revert commit.The branch that the revert commit will be created on.Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Method Details
-
getBranch
The tip of the branch that will be used as the parent of the revert commit.This branch will also be the target branch if the
target branch
is not provided (i.e. the revert commit will be created on this branch).- Returns:
- branch used as the parent of the revert commit
-
getCommitId
- Returns:
- the ID of the commit to be reverted
-
getCommitter
- Returns:
- the committer of the revert commit.
-
getMergedCommitParentNumber
- Returns:
- parent number of the merge commit to be considered for reverting, if the
commit
is a merge commit, otherwiseOptional.empty()
.
-
getTargetBranch
The branch that the revert commit will be created on.If target branch is
Optional.empty()
thengetBranch()
will be used as the target branch.- Returns:
- the branch to create the revert commit on
-