From: Eric Raible Date: Thu, 02 Jul 2009 18:04:45 GMT Subject: Re: Does CVS has a easy way to compare file with its previous version? Message-ID: In-Reply-To: Linus Torvalds linux-foundation.org> writes: > On Wed, 1 Jul 2009, Paolo Bonzini wrote: > > > > I think he wants something more like > > > > git diff `git log -2 --pretty=format:%h` -- > > That's a rather difficult way of saying > > git log --no-merges -p -1 > > which seems much simpler. Sure, you'll get the commit message too, but > that just sounds like gravy to me (you can use "--pretty=oneline" or > something to make it denser). > > Linus Isn't the first one incorrect because needs to be inside the backticks? git diff `git log -2 --pretty=format:%h ` -- And isn't the replacement incorrect also (the diffs are backwards)? git log --no-merges -p -R -1 - Eric