This comes up a few times around the office and I don't have an answer when it does. Let's say you distribute your source code as a binary. A few years later, someone finds a bug in file system/foo.cpp. They give me their original foo.cpp and the updated version of it that has the bug fix. The problem is, foo.cpp has had 600 total revisions, and you don't know which revision they had originally modified.
Is there a way to use the original foo.cpp provided by the bug fixes to discover which exact SHA1 tree revision had the first instance of that original foo.cpp? In other words, is there a git utility or helper script to search every system/foo.cpp revision comparing it to the submitted foo.cpp to find which revision they modified?