Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revparse isn't supported #633

Closed
aspiers opened this issue May 25, 2016 · 3 comments
Closed

revparse isn't supported #633

aspiers opened this issue May 25, 2016 · 3 comments

Comments

@aspiers
Copy link

aspiers commented May 25, 2016

AFAICS, pygit2 only supports revparse_single, not revparse. This means there's no convenient way to obtain a list of revisions, e.g. like it can be done with git rev-list A..B. The closest I could find was Repository.walk, but that only lets you specify a starting point, and it presumably doesn't exclude commits in the same way that A..B will exclude commits which are already merged into A.

@carlosmn
Copy link
Member

A walk does let you specify a stopping point, but that's nowhere close to what rev-parse gives you.

@jdavid
Copy link
Member

jdavid commented Oct 4, 2020

With PR #1022 Repository.revparse(...) and Repository.revparse_ext(...) have been added, released in 1.3.0

@jdavid jdavid closed this as completed Oct 4, 2020
@aspiers
Copy link
Author

aspiers commented Oct 4, 2020

Fantastic, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants