$> git show d370f56
>>> repo = pygit2.Repository('/path/to/repository')
>>> commit = repo.revparse_single('d370f56')
>>> message = commit.message
>>> hash = commit.hex
>>> diff = commit.tree.diff()
>>> for e in commit.tree:
>>> print(e.name)