[git-users] Re: git diff of previous commit that affects a particular file?

2008-09-23 Thread Luís Pereira
[EMAIL PROTECTED] wrote: Is there an easy way to say diff against the most recent commit that affected this file? If I do git diff HEAD^ file, it diffs against the previous commit to the repository as a whole, but that commit may not have affected file. For example, I may commit to file

[git-users] Re: git diff of previous commit that affects a particular file?

2008-09-23 Thread Luuk Paulussen
git whatchanged -n 1 -p file without the -n 1 you'll get a history of all the patches to the file. On Tue, Sep 23, 2008 at 8:39 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: Is there an easy way to say diff against the most recent commit that affected this file? If I do git diff HEAD^ file,