LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > dr_agon
User Name
Password

Notices

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:
Quote:
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:
Code:
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'.
Example:
Code:
cvs -n update -dP
Now, back to work.
Posted in Uncategorized
Views 1075 Comments 0
« Prev     Main     Next »

  



All times are GMT -5. The time now is 04:47 AM.

Main Menu
Advertisement

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