Package org.apache.commons.codec.digest
Enum GitIdentifiers.FileMode
- All Implemented Interfaces:
Serializable,Comparable<GitIdentifiers.FileMode>
- Enclosing class:
GitIdentifiers
The type of a Git tree entry, which maps to a Unix file-mode string.
Git encodes the file type and permission bits as an ASCII octal string that precedes the entry name in the binary tree format. The values defined here cover the four entry types that Git itself produces.
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA subdirectory.A regular, but executable, file.A gitlink, SHA-1 of the object refers to a commit in another repository.A regular (non-executable) file.A symbolic link. -
Method Summary
Modifier and TypeMethodDescriptionstatic GitIdentifiers.FileModeReturns the enum constant of this type with the specified name.static GitIdentifiers.FileMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DIRECTORY
A subdirectory. Subdirectories can only be specified by SHA or through a tree mark set with--import-marks.- See Also:
-
EXECUTABLE
A regular, but executable, file. -
GIT_LINK
A gitlink, SHA-1 of the object refers to a commit in another repository. Git links can only be specified either by SHA or through a commit mark. They are used to implement submodules.- See Also:
-
REGULAR
A regular (non-executable) file.The majority of files in most projects use this mode. If in doubt, this is what you want.
-
SYMBOLIC_LINK
A symbolic link. The content of the file will be the link target.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-