Package org.azd.enums
Enum Class GitPullRequestMergeStrategy
- All Implemented Interfaces:
Serializable
,Comparable<GitPullRequestMergeStrategy>
,Constable
Status context that uniquely identifies the status.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA two-parent, no-fast-forward merge.Rebase the source branch on top of the target branch HEAD commit, and fast-forward the target branch.Rebase the source branch on top of the target branch HEAD commit, and create a two-parent, no-fast-forward merge.Put all changes from the pull request into a single-parent commit. -
Method Summary
Modifier and TypeMethodDescriptionstatic GitPullRequestMergeStrategy
Returns the enum constant of this class with the specified name.static GitPullRequestMergeStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOFASTFORWARD
A two-parent, no-fast-forward merge. The source branch is unchanged. This is the default behavior. -
REBASE
Rebase the source branch on top of the target branch HEAD commit, and fast-forward the target branch. The source branch is updated during the rebase operation. -
REBASEMERGE
Rebase the source branch on top of the target branch HEAD commit, and create a two-parent, no-fast-forward merge. The source branch is updated during the rebase operation. -
SQUASH
Put all changes from the pull request into a single-parent commit.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-