blame at commit support
Sorry if this is already supported, but I can't find in the documention nor in the code.
AFAIK, it's not currently possible to blame a file in a specific commit, right? Something in line with:
git blame hex_oid -- A.java
Would it be possible to implement? Too complicated? What would be the alternative?
Thanks for the awesome library BTW.
I think there's some git blame support already; is there something that's missing that you're looking for?
https://www.pygit2.org/blame.html
I don't find the option for blaming the file in a specific commit. For what I see, you can only blame the file in the index.
I'd like to blame the file in an older commit.
You should be able to pass in a newest_commit and oldest_commit keyword arg (either an Oid object or a string of the sha) to Repository.blame() to set the range of commits for the Blame object returned.
This issue can probably be closed: this seems to be supported already indeed.