Enum Class Capability
- All Implemented Interfaces:
Serializable,Comparable<Capability>,Constable
Optional features a
GitBackend may or may not support. The UI queries these flags instead of
assuming a particular backend, so features can be enabled or hidden per backend (see docs/architecture.md).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStashing only some files, and stashing with the staged changes kept (StashOptions). -
Method Summary
Modifier and TypeMethodDescriptionstatic CapabilityReturns the enum constant of this class with the specified name.static Capability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ_HISTORY
-
READ_STATUS
-
DIFF
-
BRANCHING
-
MERGE
-
TAGS
-
STASH
-
STASH_OPTIONS
Stashing only some files, and stashing with the staged changes kept (StashOptions). -
CONFIG
-
CLONE
-
STAGING
-
COMMIT
-
REMOTE_OPERATIONS
-
INTERACTIVE_REBASE
-
WORKTREES
-
LFS
-
SUBMODULES
-
HOOKS
-
GPG_SIGNING
-
SSH_SIGNING
-
-
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
-