Jeremy Stein - Brain

« »

ClearCase – Find Added Files

Rational ClearCase doesn’t provide a mechanism for determining which files in the directory structure aren’t under source control. Since ClearCase makes its files read-only, the easiest way I’ve found to find these files is to look for files that are not read-only. (This will also match checked-out files.)

I can’t find a way to do this on Windows natively, so I use cygwin:

find . -writable

That’s the basic idea. If your directory structure was designed by nincompoops, you might have derived files in the same directory tree. In that case, you’ll want to filter those out:

find . -type d \( -name build -o -name target \) -prune -o -type f -writable -print

September 6, 2007 No Comments.

No Comments

Be the first to comment!

Leave a Reply

Your email address will not be published. Required fields are marked *

Why ask?

« »