Visit the LQ Articles and Editorials section
Go Back > Blogs > dr_agon
User Name


Rate this Entry

CVS diff default behavior

Posted 10-13-2008 at 03:55 PM by dr_agon

applies to: linux, cvs, diff

I spent some time wondering why cvs diff does not show the local files which differ from the most recent revision. It turned out that this is simply the default behavior, as described in man page:
The default action is to compare your working files with the revisions they were based on
To see differences with other revision, you must use -D or -r option.
For example to compare with newest revisions:
cvs diff --brief -D now
Another way to see which files would be updated, without actually updating them, is to use -n global option, meaning 'Do not change any files'.
cvs -n update -dP
Now, back to work.
Posted in Uncategorized
Views 1081 Comments 0
« Prev     Main     Next »


All times are GMT -5. The time now is 08:44 PM.

Main Menu

Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration