Enum Class GitRevListMerges

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

public enum GitRevListMerges extends Enum<GitRevListMerges>
Enumerates the possible merge commit modes for git rev-list, controlling use of the --merges, --no-merges and --no-min-parents flags.
Since:
4.8
  • Enum Constant Details

    • DEFAULT

      public static final GitRevListMerges DEFAULT
      Apply git rev-list's default behaviour.
    • EXCLUDE

      public static final GitRevListMerges EXCLUDE
      Exclude merge commits.
    • INCLUDE

      public static final GitRevListMerges INCLUDE
      Include merge commits. This does not exclude non-merge commits.
    • ONLY

      public static final GitRevListMerges ONLY
      Include only merge commits.
  • Method Details

    • values

      public static GitRevListMerges[] 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 GitRevListMerges 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()
    • fromFilter

      @Nonnull public static GitRevListMerges fromFilter(@Nonnull com.atlassian.bitbucket.commit.CommitListMergeFilter value)
      Parameters:
      value - the CommitListMergeFilter value
      Returns:
      a coerced value to a CommitListMergeFilter
      Throws:
      IllegalArgumentException - if an unsupported CommitListMergeFilter is provided