I am trying o grasp gitpython module,
hcommit = repo.head.commit
tdiff = hcommit.diff('HEAD~1')
but tdiff = hcommit.diff('HEAD^ HEAD')
doesn't work !! neither does ('HEAD~ HEAD')
.,
I am trying to get the diff output !
I figured out how to get the git diff using gitPython.
Voila !!! |
|||
|
repo.head.commit
, it's bound to that particular commit, and thushcommit.diff
means "diff that particular commit, against something else". To get diffs of two arbitrary commits, you'd have to choose some other starting-point. – torek Feb 25 at 17:39