Correctly handle git diff's output for files which just change mode bits.