Files
deb-python-pygit2/docs/status.rst
2013-01-13 22:26:49 +01:00

12 lines
417 B
ReStructuredText

**********************************************************************
Status
**********************************************************************
Inspect the status of the repository::
>>> from pygit2 import GIT_STATUS_CURRENT
>>> status = repo.status()
>>> for filepath, flags in status.items():
... if flags != GIT_STATUS_CURRENT:
... print "Filepath %s isn't clean" % filepath