I'm trying to use the GitPython module in my script... and I can't. That's not very documented : GitPython Blame
I think I'm not so far, because the normally git blame I want to reproduce is the follow : git blame -L127,+1 ../../core/src/filepath.cpp -e
Here is my script :
from git import *
repo = Repo("C:\\Path\\to\\my\\repos\\")
assert not repo.bare
# log_line = open("lineDeb.txt")
# for line in log_line:
repo.git.blame(L='127,+1' '../../core/src/filepath.cpp', e=True)
The two lines commented are for the final goal to git blame on each number line in my "lineDeb.txt" file.
I've the following ouput :
...
git.exc.GitCommandError: 'git blame -L127,+1../../core/src/filepath.cpp -e' returned with exit code 129
stderr: 'usage: git blame [options] [rev-opts] [rev] [--] file
...
The goal is to get the email of the line committer...