Enum Class GitDiffColor
- All Implemented Interfaces:
Serializable,Comparable<GitDiffColor>,Constable
Enumerates the possible modes for
git diff-core --color.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways include color markers in the diff output.Automatically turn color markers in diff output on when connected to a terminal.Uses the.gitconfig-configured setting for color markers in diff output.Never include color markers in the diff output, even if it is configured in.gitconfig. -
Method Summary
Modifier and TypeMethodDescriptiongetFlag()booleanstatic GitDiffColorReturns the enum constant of this class with the specified name.static GitDiffColor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always include color markers in the diff output. -
AUTO
Automatically turn color markers in diff output on when connected to a terminal.Warning: This value is included for completeness in enumerating Git's supported color modes. However, it functions the same as
NEVER, here, since the system is not a terminal. -
DEFAULT
Uses the.gitconfig-configured setting for color markers in diff output. -
NEVER
Never include color markers in the diff output, even if it is configured in.gitconfig.
-
-
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()
-