Revision parsing

You can use any of the fancy <rev> forms supported by libgit2:

>>> commit = repo.revparse_single('HEAD^')

Constants:

GIT_REVPARSE_SINGLE
GIT_REVPARSE_RANGE
GIT_REVPARSE_MERGE_BASE