Enum Class GitCheckoutType
- All Implemented Interfaces:
Serializable,Comparable<GitCheckoutType>,Constable
The type of a
git checkout used to initialize a GitWorkTree. For performance reasons, "full"
checkouts, in which all files are checkout out, are not supported. Only NONE, which is comparable to
git clone --no-checkout, and SPARSE, which is comparable to git clone --sparse, are
supported.- Since:
- 7.14
-
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 TypeMethodDescriptionstatic GitCheckoutTypeReturns the enum constant of this class with the specified name.static GitCheckoutType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
A checkout without any files checked out, wheregit statusshows unstaged changes as deleting all files. When working with aNO_CHECKOUTwork tree, special care needs to be taken to only stage files of interest. Adding files throughgit add -uorgit commit -awill delete (almost) all files! -
SPARSE
A checkout initialized as a sparse checkout, wheregit statusshows no changes, but most files are not actually checked out.
-
-
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
-