Enum Class GitFetchTagMode

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

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

    • DEFAULT

      public static final GitFetchTagMode DEFAULT
      Fetches tags referencing any object reachable from a fetched head. This is referred to in the Git documentation as "tag following". It means that, for example, git fetch origin refs/heads/master can end up fetching some number of tags, even though they were not requested, so long as those tags can be satisfied by the objects reachable from "refs/heads/master".
    • NO_TAGS

      public static final GitFetchTagMode NO_TAGS
      Disables "tag following", ensuring only explicitly-requested refs (potentially including tags) are updated.
    • TAGS

      public static final GitFetchTagMode TAGS
      Explicitly fetches all remote tags. This is the same as explicitly passing refs/tags/*:refs/tags/* as a refspec, meaning it will override configured default refspecs.

      In addition to the obvious behaviour of creating new local tags for new remote tags, this also has a (largely undocumented) side effect of updating any local tag which matches the name of a remote tag but does not refer to the same object. This is done even if non-fast-forward updates are not requested.

  • Method Details

    • values

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

      public String getFlag()
    • isFlagged

      public boolean isFlagged()