Is it possible to get git to produce a diff between a specific file as it exists now, and as it existed before the last commit that changed it?
That is, if we know:
If you are fine using a graphical tool this works very well:
gitk
gitk now shows all commits where the file has been updated. Marking a commit will show you the diff against the previous commit in the list. This also works for directories, but then you also get to select the file to diff for the selected commit. Super useful!