Enum Class GitFetchTagMode
- All Implemented Interfaces:
Serializable,Comparable<GitFetchTagMode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetFlag()booleanstatic GitFetchTagModeReturns the enum constant of this class with the specified name.static GitFetchTagMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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/mastercan 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
Disables "tag following", ensuring only explicitly-requested refs (potentially including tags) are updated. -
TAGS
Explicitly fetches all remote tags. This is the same as explicitly passingrefs/tags/*:refs/tags/*as arefspec, 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
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()
-