CVS list of files only in working directories
-
03-07-2019 - |
Question
Is it possible to get a list of files that are in the working directory tree, but not in the current branch/tag? I currently diff the working copy with another directory updated to the same module and tag/branch but without the local non-repo files. It works, but doesn't honor the .cvsignore files. I figure there must be an option using a variation of 'cvs diff'.
Thanks in advance.
Solution
If your project has:
dir/a.txt <--- In CVS
b.txt <--- In CVS
c.txt <--- In CVS
newfile.txt <---- ***NOT IN CVS***
Then the following command will identify newfile.txt for you:
cvs -n update | egrep '^?'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow