{"id":100,"date":"2007-09-06T09:56:08","date_gmt":"2007-09-06T14:56:08","guid":{"rendered":"http:\/\/stein.everybody.org\/brain\/clearcase-find-added-files\/"},"modified":"2011-03-10T10:57:29","modified_gmt":"2011-03-10T15:57:29","slug":"clearcase-find-added-files","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/clearcase-find-added-files\/","title":{"rendered":"ClearCase &#8211; Find Added Files"},"content":{"rendered":"<p>Rational ClearCase doesn&#8217;t provide a mechanism for determining which files in the directory structure <strong>aren&#8217;t<\/strong> under source control.  Since ClearCase makes its files read-only, the easiest way I&#8217;ve found to find these files is to look for files that are <strong>not<\/strong> read-only.  (This will also match checked-out files.)<\/p>\n<p>I can&#8217;t find a way to do this on Windows natively, so I use cygwin:<\/p>\n<pre>find . -writable<\/pre>\n<p>That&#8217;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&#8217;ll want to filter those out:<\/p>\n<pre>find . -type d \\( -name build -o -name target \\) -prune -o -type f -writable -print<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Rational ClearCase doesn&#8217;t provide a mechanism for determining which files in the directory structure aren&#8217;t under source control. Since ClearCase makes its files read-only, the easiest way I&#8217;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&#8217;t find a way to do [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,28],"tags":[],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-clearcase","category-cygwin"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}