public enum TagOpt extends Enum<TagOpt>
Enum Constant and Description |
---|
AUTO_FOLLOW
Automatically follow tags if we fetch the thing they point at.
|
FETCH_TAGS
Always fetch tags, even if we do not have the thing it points at.
|
NO_TAGS
Never fetch tags, even if we have the thing it points at.
|
Modifier and Type | Method and Description |
---|---|
static TagOpt |
fromOption(String o)
Convert a command line/configuration file text into a value instance.
|
String |
option()
Get the command line/configuration file text for this value.
|
static TagOpt |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TagOpt[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TagOpt AUTO_FOLLOW
This is the default behavior and tries to balance the benefit of having an annotated tag against the cost of possibly objects that are only on branches we care nothing about. Annotated tags are fetched only if we can prove that we already have (or will have when the fetch completes) the object the annotated tag peels (dereferences) to.
public static final TagOpt NO_TAGS
This option must be requested by the user and always avoids fetching annotated tags. It is most useful if the location you are fetching from publishes annotated tags, but you are not interested in the tags and only want their branches.
public static final TagOpt FETCH_TAGS
Unlike AUTO_FOLLOW
the tag is always obtained. This may cause
hundreds of megabytes of objects to be fetched if the receiving
repository does not yet have the necessary dependencies.
public static TagOpt[] values()
for (TagOpt c : TagOpt.values()) System.out.println(c);
public static TagOpt valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String option()
Copyright © 2015 Eclipse JGit Project. All rights reserved.