How to compare a revision to its previous revision using CVS diff?
I am currently analyzing some CVS projects. Suppose 开发者_运维技巧I want to compare Foo.c (revision 5) to its previous revision (revision 4) and output the diff, can I use CVS diff to achieve this? (No working copy involved)
I know that SVN diff has an option --change(-c) that can achieve this, a command like:
$ svn diff -c 5 Foo.c
can automatically compare revision 5 of Foo.c to its previous revision.
I just wonder whether CVS diff has similar options. Thanks!
You can use this:
cvs diff -c -r 5 -r 4 Foo.c
精彩评论