You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're running the diff the wrong way around. GitPython follows the order of arguments to that command line git diff would also require: old -> new. So you should use c.parents[0].diff(c) rather than c.diff(c.parents[0]). That's why you get the inverse. It's definitely not super intuitive, but that's how it works.
I'm running into a problem where a deleted file is showing as new. I reproduced the issue to the best of my ability below.
Repository: https://github.com/apache/httpclient.git
Commit:
b29c819645a404a064f022d5a75d8597985f6fac
Using Python 3.5.1, GitPython 2.0.5, and git 2.8.3.
The text was updated successfully, but these errors were encountered: