git_status_t

Status flags for a single file.

A combination of these values will be returned to indicate the status of a file. Status compares the working directory, the index, and the current HEAD of the repository. The GIT_STATUS_INDEX set of flags represents the status of file in the index relative to the HEAD, and the GIT_STATUS_WT set of flags represent the status of the file in the working directory relative to the index.

Values

ValueMeaning
GIT_STATUS_CURRENT0
GIT_STATUS_INDEX_NEW1u << 0
GIT_STATUS_INDEX_MODIFIED1u << 1
GIT_STATUS_INDEX_DELETED1u << 2
GIT_STATUS_INDEX_RENAMED1u << 3
GIT_STATUS_INDEX_TYPECHANGE1u << 4
GIT_STATUS_WT_NEW1u << 7
GIT_STATUS_WT_MODIFIED1u << 8
GIT_STATUS_WT_DELETED1u << 9
GIT_STATUS_WT_TYPECHANGE1u << 10
GIT_STATUS_WT_RENAMED1u << 11
GIT_STATUS_WT_UNREADABLE1u << 12
GIT_STATUS_IGNORED1u << 14
GIT_STATUS_CONFLICTED1u << 15

Meta