Enum Class GitRevListOrder

java.lang.Object
java.lang.Enum<GitRevListOrder>
com.atlassian.bitbucket.scm.git.command.revlist.GitRevListOrder
All Implemented Interfaces:
Serializable, Comparable<GitRevListOrder>, Constable

public enum GitRevListOrder extends Enum<GitRevListOrder>
Enumerates the possible orders for git rev-list, controlling use of the --date-order and --topo-order flags.
  • Enum Constant Details

    • DATE

      public static final GitRevListOrder 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

      public static final GitRevListOrder DEFAULT
      Apply git rev-list's default behaviour.
    • TOPOLOGICAL

      public static final GitRevListOrder TOPOLOGICAL
      Output the commits in topological order (i.e. descendant commits are shown before their parents).
  • Method Details

    • values

      public static GitRevListOrder[] 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

      public static GitRevListOrder valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getFlag

      @Nullable public String getFlag()
    • isFlagged

      public boolean isFlagged()
    • fromCommitOrder

      @Nonnull public static GitRevListOrder fromCommitOrder(@Nonnull com.atlassian.bitbucket.commit.CommitOrder order)