libgit2

git_status_t

Version:

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

GIT_STATUS_CURRENT
0
GIT_STATUS_INDEX_NEW
(1 << 0)
GIT_STATUS_INDEX_MODIFIED
(1 << 1)
GIT_STATUS_INDEX_DELETED
(1 << 2)
GIT_STATUS_INDEX_RENAMED
(1 << 3)
GIT_STATUS_INDEX_TYPECHANGE
(1 << 4)
GIT_STATUS_WT_NEW
(1 << 7)
GIT_STATUS_WT_MODIFIED
(1 << 8)
GIT_STATUS_WT_DELETED
(1 << 9)
GIT_STATUS_WT_TYPECHANGE
(1 << 10)
GIT_STATUS_WT_RENAMED
(1 << 11)
GIT_STATUS_WT_UNREADABLE
(1 << 12)
GIT_STATUS_IGNORED
(1 << 14)
GIT_STATUS_CONFLICTED
(1 << 15)

Versions