-
-
Notifications
You must be signed in to change notification settings - Fork 933
Wrong change_type for diff('HEAD') #882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think it's a bug. In To get the right diff, you may use |
Maybe this part of the docs helps to clarify what it is doing. Do you still think the behaviour is incorrect? In the meantime, I assume it's not a bug and we can reopen as needed. |
I had the same issue just now and the docs are not clear enough to me:
If I add a file to the index the diff from index to commit should show it as added. But here it is the other way round. The documentation says "between" here which doesn't specify the "direction" of the diff. To show why I was confused:
I.e. I use |
I've seen Issue #531 and #534, but this failure exists further on.
change_type, new_file and deleted_file have wrong values.
It seems for me, that the detection for added and removed files are interchanged.
Here is what I've done:
executing the script
The text was updated successfully, but these errors were encountered: