Re: Does CVS has a easy way to compare file with its previous version?
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jul 1, 2009, 01:18 UTC
- Message-ID
- <alpine.LFD.2.01.0906301813480.3605@localhost.localdomain>
- In-Reply-To
- <4A4A9FA5.7000009@gnu.org>
On Wed, 1 Jul 2009, Paolo Bonzini wrote:
> > I think he wants something more like > > git diff `git log -2 --pretty=format:%h` <file> -- <file>
That's a rather difficult way of saying
git log --no-merges -p -1 <filename>
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