Enum Class GitRevListOrder
- All Implemented Interfaces:
Serializable
,Comparable<GitRevListOrder>
,Constable
Enumerates the possible orders for
git rev-list
, controlling use of the --date-order
and --topo-order
flags.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSimilar to--topo-order
in the sense that no parent comes before all of its children, but otherwise things are still ordered in the commit timestamp order.Applygit rev-list
's default behaviour.Output the commits in topological order (i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic GitRevListOrder
fromCommitOrder
(com.atlassian.bitbucket.commit.CommitOrder order) getFlag()
boolean
static GitRevListOrder
Returns the enum constant of this class with the specified name.static GitRevListOrder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATE
Similar to--topo-order
in the sense that no parent comes before all of its children, but otherwise things are still ordered in the commit timestamp order. -
DEFAULT
Applygit rev-list
's default behaviour. -
TOPOLOGICAL
Output the commits in topological order (i.e. descendant commits are shown before their parents).
-
-
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
-
getFlag
-
isFlagged
public boolean isFlagged() -
fromCommitOrder
@Nonnull public static GitRevListOrder fromCommitOrder(@Nonnull com.atlassian.bitbucket.commit.CommitOrder order)
-