Skip to content

Is it possible to use Repo.iter_commits or other API to get renames of files? #1477

Answered by Byron
Guo-Zhang asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think that out of the box this is easy in GitPython, but it should be possible to use git directly and parse its output instead.
GitPython can make calling into git more pythonic, too, but it won't change the fact that you have to deal with a steam of bytes to parse.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1476 on August 10, 2022 01:41.