Revision parsing
You can use any of the fancy <rev> forms supported by libgit2:
>>> commit = repo.revparse_single('HEAD^')
Constants:
- pygit2.enums.RevSpecFlag.SINGLE
- pygit2.enums.RevSpecFlag.RANGE
- pygit2.enums.RevSpecFlag.MERGE_BASE
You can use any of the fancy <rev> forms supported by libgit2:
>>> commit = repo.revparse_single('HEAD^')
Constants: