Enum Class GitTagType

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

public enum GitTagType extends Enum<GitTagType>
  • Enum Constant Details

    • ANNOTATED

      public static final GitTagType ANNOTATED
      A tag annotated with details about when it was created and by whom.

      Note: If a type isn't explicitly specified, this is the default. This differs from git tag, which will create lightweight tags by default.

    • LIGHTWEIGHT

      public static final GitTagType LIGHTWEIGHT
      A simple tag directly referencing a commit. Lightweight tags do not track when, or by whom, they were created.
  • Method Details

    • values

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