I am using the GitPython library and was wondering how to get all commits on a branch in range of two commit sha-1's. I have the start one and end one. Is there any way to get list of them?
I have instantiated the repo object and was wondering if there was a way to query it and obtain a list of commits in the range of two shas?
Would be looking to do something similar to this command but return them as a list:
git log e0d8a4c3fec7ef2c352342c2ffada21fa07c1dc..63af686e626e0a5cbb0508367983765154e188ce --pretty=format:%h,%an,%s > commits.csv
Seems like there is Repo.iter_commits() method but can't see how to specify a range.