# Functions
New takes the octal string representation of a FileMode and returns the FileMode and a nil error.
NewFromOSFileMode returns the FileMode used by git to represent the provided file system modes and a nil error on success.
# Constants
Deprecated represent non-executable files with the group writable bit set.
Dir represent a Directory.
Empty is used as the FileMode of tree elements when comparing trees in the following situations:
- the mode of tree elements before their creation.
Executable represents executable files.
Regular represent non-executable files.
Submodule represents git submodules.
Symlink represents symbolic links to files.
# Type aliases
A FileMode represents the kind of tree entries used by git.