MCPcopy Create free account
hub / github.com/libgit2/pygit2 / FileStatus

Class FileStatus

pygit2/enums.py:683–711  ·  view source on GitHub ↗

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 `INDEX_...` set of flags represents the status of the file in the inde

Source from the content-addressed store, hash-verified

681
682
683class FileStatus(IntFlag):
684 """
685 Status flags for a single file.
686
687 A combination of these values will be returned to indicate the status of
688 a file. Status compares the working directory, the index, and the current
689 HEAD of the repository. The `INDEX_...` set of flags represents the status
690 of the file in the index relative to the HEAD, and the `WT_...` set of
691 flags represents the status of the file in the working directory relative
692 to the index.
693 """
694
695 CURRENT = _pygit2.GIT_STATUS_CURRENT
696
697 INDEX_NEW = _pygit2.GIT_STATUS_INDEX_NEW
698 INDEX_MODIFIED = _pygit2.GIT_STATUS_INDEX_MODIFIED
699 INDEX_DELETED = _pygit2.GIT_STATUS_INDEX_DELETED
700 INDEX_RENAMED = _pygit2.GIT_STATUS_INDEX_RENAMED
701 INDEX_TYPECHANGE = _pygit2.GIT_STATUS_INDEX_TYPECHANGE
702
703 WT_NEW = _pygit2.GIT_STATUS_WT_NEW
704 WT_MODIFIED = _pygit2.GIT_STATUS_WT_MODIFIED
705 WT_DELETED = _pygit2.GIT_STATUS_WT_DELETED
706 WT_TYPECHANGE = _pygit2.GIT_STATUS_WT_TYPECHANGE
707 WT_RENAMED = _pygit2.GIT_STATUS_WT_RENAMED
708 WT_UNREADABLE = _pygit2.GIT_STATUS_WT_UNREADABLE
709
710 IGNORED = _pygit2.GIT_STATUS_IGNORED
711 CONFLICTED = _pygit2.GIT_STATUS_CONFLICTED
712
713
714class FilterFlag(IntFlag):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…