开发者

How to compare a revision to its previous revision using CVS diff?

开发者 https://www.devze.com 2023-03-11 17:50 出处:网络
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? (

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

0

精彩评论

暂无评论...
验证码 换一张
取 消