I have two git commits c1 and cn. In my case cn is the tip of my current branch. c1 is a great-great-ancestor of cn. Roughtly 20 commits are between them. My file test.py got corrupted somewhere on the way. Is there a way to figure out at which commit it got corrupted?
When I type
git diff c1 cn test.py
I do get all the differences between the two commits and indeed i see that it got changed to the worse. However, it doesnt tell me where it got changed! I would like to find the particular commit where i made the fatal change.
Edit: What I am really looking for is a verbose git diff. I can see what made the test.py buggy, but I want to know which commit was responsible for it. So a git diff with a verbose option would be great. One that adds the id and the message and the branch of the diffs.