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

381 B

Commit log

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)