using System; namespace LibGit2Sharp { /// /// Calculated status of a filepath in the working directory considering the current and the . /// [Flags] public enum FileStatus { /// /// The file doesn't exist. /// Nonexistent = (1 << 31), /// /// The file hasn't been modified. /// Unaltered = 0, /* GIT_STATUS_CURRENT */ /// /// New file has been added to the Index. It's unknown from the Head. /// [Obsolete("This enum member will be removed in the next release. Please use NewInIndex instead.")] Added = (1 << 0), /* GIT_STATUS_INDEX_NEW */ /// /// New file has been added to the Index. It's unknown from the Head. /// NewInIndex = (1 << 0), /* GIT_STATUS_INDEX_NEW */ /// /// New version of a file has been added to the Index. A previous version exists in the Head. /// [Obsolete("This enum member will be removed in the next release. Please use ModifiedInIndex instead.")] Staged = (1 << 1), /* GIT_STATUS_INDEX_MODIFIED */ /// /// New version of a file has been added to the Index. A previous version exists in the Head. /// ModifiedInIndex = (1 << 1), /* GIT_STATUS_INDEX_MODIFIED */ /// /// The deletion of a file has been promoted from the working directory to the Index. A previous version exists in the Head. /// [Obsolete("This enum member will be removed in the next release. Please use DeletedFromIndex instead.")] Removed = (1 << 2), /* GIT_STATUS_INDEX_DELETED */ /// /// The deletion of a file has been promoted from the working directory to the Index. A previous version exists in the Head. /// DeletedFromIndex = (1 << 2), /* GIT_STATUS_INDEX_DELETED */ /// /// The renaming of a file has been promoted from the working directory to the Index. A previous version exists in the Head. /// RenamedInIndex = (1 << 3), /* GIT_STATUS_INDEX_RENAMED */ /// /// A change in type for a file has been promoted from the working directory to the Index. A previous version exists in the Head. /// [Obsolete("This enum member will be removed in the next release. Please use TypeChangeInIndex instead.")] StagedTypeChange = (1 << 4), /* GIT_STATUS_INDEX_TYPECHANGE */ /// /// A change in type for a file has been promoted from the working directory to the Index. A previous version exists in the Head. /// TypeChangeInIndex = (1 << 4), /* GIT_STATUS_INDEX_TYPECHANGE */ /// /// New file in the working directory, unknown from the Index and the Head. /// [Obsolete("This enum member will be removed in the next release. Please use NewInWorkdir instead.")] Untracked = (1 << 7), /* GIT_STATUS_WT_NEW */ /// /// New file in the working directory, unknown from the Index and the Head. /// NewInWorkdir = (1 << 7), /* GIT_STATUS_WT_NEW */ /// /// The file has been updated in the working directory. A previous version exists in the Index. /// [Obsolete("This enum member will be removed in the next release. Please use ModifiedInWorkdir instead.")] Modified = (1 << 8), /* GIT_STATUS_WT_MODIFIED */ /// /// The file has been updated in the working directory. A previous version exists in the Index. /// ModifiedInWorkdir = (1 << 8), /* GIT_STATUS_WT_MODIFIED */ /// /// The file has been deleted from the working directory. A previous version exists in the Index. /// [Obsolete("This enum member will be removed in the next release. Please use DeletedFromWorkdir instead.")] Missing = (1 << 9), /* GIT_STATUS_WT_DELETED */ /// /// The file has been deleted from the working directory. A previous version exists in the Index. /// DeletedFromWorkdir = (1 << 9), /* GIT_STATUS_WT_DELETED */ /// /// The file type has been changed in the working directory. A previous version exists in the Index. /// [Obsolete("This enum member will be removed in the next release. Please use TypeChangeInWorkdir instead.")] TypeChanged = (1 << 10), /* GIT_STATUS_WT_TYPECHANGE */ /// /// The file type has been changed in the working directory. A previous version exists in the Index. /// TypeChangeInWorkdir = (1 << 10), /* GIT_STATUS_WT_TYPECHANGE */ /// /// The file has been renamed in the working directory. The previous version at the previous name exists in the Index. /// RenamedInWorkdir = (1 << 11), /* GIT_STATUS_WT_RENAMED */ /// /// The file is unreadable in the working directory. /// Unreadable = (1 << 12), /* GIT_STATUS_WT_UNREADABLE */ /// /// The file is but its name and/or path matches an exclude pattern in a gitignore file. /// Ignored = (1 << 14), /* GIT_STATUS_IGNORED */ /// /// The file is due to a merge. /// Conflicted = (1 << 15), /* GIT_STATUS_CONFLICTED */ } }