All Questions
1 question
6
votes
3
answers
4k
views
Iterate commits b/w 2 specified commits in GitPython
import git
repo = git.Repo(repo_dir)
ref_name = 'master'
for commit in repo.iter_commits(rev=ref_name):
<some code here>
This code iterates through all the commits. I want to iterate b/w 2 ...