deb-python-pygit2/docs/log.rst
2013-04-03 19:09:48 +02:00

12 lines
381 B
ReStructuredText

**********************************************************************
Commit log
**********************************************************************
.. automethod:: pygit2.Repository.walk
You can iterate through the revision history with repo.walk::
>>> from pygit2 import GIT_SORT_TIME
>>> for commit in repo.walk(oid, GIT_SORT_TIME):
... print(commit.hex)