# from http://stackoverflow.com/a/5493663/345007 # --follow deals with name changes # -p does whole diffs # -- stops input and treats rest as arguments (i.e., filenames) git log --follow -p -- file