git rev-list outputs all version of a file path (stops at renames), git --follow --pretty=%h outputs all versions across moves/renames, but how can I find (non-manually) the latest commit that modified the content of a file (preferably excluding chmod's too)?
In my case I have a file that was renamed several times, but I want to rebase just before the latest commit that changed it.