<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ClearCase Globally, Git Locally</title>
	<atom:link href="http://genaud.net/2008/08/clearcase-globally-git-locally/feed/" rel="self" type="application/rss+xml" />
	<link>http://genaud.net/2008/08/clearcase-globally-git-locally/</link>
	<description>genaud.net</description>
	<lastBuildDate>Fri, 13 Jan 2012 16:19:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Alex</title>
		<link>http://genaud.net/2008/08/clearcase-globally-git-locally/comment-page-1/#comment-61510</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 13 Jan 2012 16:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://genaud.net/2008/08/clearcase-globally-git-locally/#comment-61510</guid>
		<description>Hi Felix, I haven&#039;t used CC in three years, but I don&#039;t recall the .git directory being a problem. If it&#039;s not committed to CC, then it&#039;s unlikely to mistakenly get absorbed. There must be some CC-ignore mechanism, but I don&#039;t recall off hand, sorry.</description>
		<content:encoded><![CDATA[<p>Hi Felix, I haven&#8217;t used CC in three years, but I don&#8217;t recall the .git directory being a problem. If it&#8217;s not committed to CC, then it&#8217;s unlikely to mistakenly get absorbed. There must be some CC-ignore mechanism, but I don&#8217;t recall off hand, sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felix</title>
		<link>http://genaud.net/2008/08/clearcase-globally-git-locally/comment-page-1/#comment-61509</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Tue, 10 Jan 2012 21:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://genaud.net/2008/08/clearcase-globally-git-locally/#comment-61509</guid>
		<description>Hi, thanks for this article! How does clear case react to the .git folder in the snapshot directory?  I obviously don&#039;t want to commit .git into Clearcase. In the article you explain how to make git ignore the Clearcase metadata, but the other way round isn&#039;t very clear to me. Thanks again.</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this article! How does clear case react to the .git folder in the snapshot directory?  I obviously don&#8217;t want to commit .git into Clearcase. In the article you explain how to make git ignore the Clearcase metadata, but the other way round isn&#8217;t very clear to me. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John "Z-Bo" Zabroski</title>
		<link>http://genaud.net/2008/08/clearcase-globally-git-locally/comment-page-1/#comment-61507</link>
		<dc:creator>John "Z-Bo" Zabroski</dc:creator>
		<pubDate>Thu, 29 Dec 2011 15:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://genaud.net/2008/08/clearcase-globally-git-locally/#comment-61507</guid>
		<description>Hello,

I made changes to your init script.  See below.

Notes:
1) Now uses echo instead of cat, to reduce the need for interactive prompts and eliminates possibly entering needless ^M characters (e.g., when viewed in vi).  This makes it slightly more platform-consistent.
2) Adds a blank .gitignore file to every empty ClearCase directory (without this, the above &#039;diff&#039; command outputs a ton of garbage about missing directories in the clone repository).

If I have some free time, I might extend this further so that creating the initial ClearCase snapshot can be done from a single script.  This would allow parameterizing the clone and snapshot directory names and automatically nest them under a parent directory.  I will also look into ACGarland&#039;s changes.

Also, thank you SO MUCH for this tutorial.  A ClearCase snapshot update takes 93 seconds on my machine (benchmarked with PowerShell: &quot;Measure-Command {cleartool update}&quot;), and we also don&#039;t use branching to work on features - only for release management.  Being able to feature branch on my own machine will allow me to produce UI prototypes much faster.  You are my hero.

&lt;code&gt;
cd snapshot
git init
find . -type d -empty -exec touch {}/.gitignore \;
echo .gitignore &gt;&gt; .git/info/exclude
echo view.dat &gt;&gt; .git/info/exclude
echo lost+found/ &gt;&gt; .git/info/exclude
git add .
git commit -m init
git clone -o snapshot . ../clone
git remote add -t master -m master clone ../clone
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I made changes to your init script.  See below.</p>
<p>Notes:<br />
1) Now uses echo instead of cat, to reduce the need for interactive prompts and eliminates possibly entering needless ^M characters (e.g., when viewed in vi).  This makes it slightly more platform-consistent.<br />
2) Adds a blank .gitignore file to every empty ClearCase directory (without this, the above &#8216;diff&#8217; command outputs a ton of garbage about missing directories in the clone repository).</p>
<p>If I have some free time, I might extend this further so that creating the initial ClearCase snapshot can be done from a single script.  This would allow parameterizing the clone and snapshot directory names and automatically nest them under a parent directory.  I will also look into ACGarland&#8217;s changes.</p>
<p>Also, thank you SO MUCH for this tutorial.  A ClearCase snapshot update takes 93 seconds on my machine (benchmarked with PowerShell: &#8220;Measure-Command {cleartool update}&#8221;), and we also don&#8217;t use branching to work on features &#8211; only for release management.  Being able to feature branch on my own machine will allow me to produce UI prototypes much faster.  You are my hero.</p>
<p><code><br />
cd snapshot<br />
git init<br />
find . -type d -empty -exec touch {}/.gitignore \;<br />
echo .gitignore >> .git/info/exclude<br />
echo view.dat >> .git/info/exclude<br />
echo lost+found/ >> .git/info/exclude<br />
git add .<br />
git commit -m init<br />
git clone -o snapshot . ../clone<br />
git remote add -t master -m master clone ../clone<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gan Ainm</title>
		<link>http://genaud.net/2008/08/clearcase-globally-git-locally/comment-page-1/#comment-61504</link>
		<dc:creator>Gan Ainm</dc:creator>
		<pubDate>Thu, 22 Dec 2011 09:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://genaud.net/2008/08/clearcase-globally-git-locally/#comment-61504</guid>
		<description>A small improvement I missed in the last patch: you can avoid the cat and grep invocations:

--- pristine    2011-12-22 10:21:47.000000000 +0100
+++ /home/adiiacm1/bin/pristine 2011-12-21 17:08:29.612148300 +0100
@@ -63,7 +63,7 @@
 # after appending gitignore to an exclude file
 #
 EXCLUDE=`pwd`/tmp.exclude
-echo .git/ &gt; $EXCLUDE
+echo &#039;\.git/&#039; &gt; $EXCLUDE
 PREV_DIR=`pwd`
 while [ 1 -eq 1 ]; do
   if [ `pwd` = &quot;/&quot; -o `pwd` = &quot;\\&quot; ]; then
@@ -72,11 +72,11 @@
     cd $PREV_DIR
     exit 1
   elif [ -e .gitignore ]; then
-    cat .gitignore &#124; grep -v &quot;^#&quot; &gt;&gt; $EXCLUDE
+   sed &#039;/^#/d;s/\./\\./g;s/\*/.*/g&#039; .gitignore &gt;&gt; $EXCLUDE
   fi
   if [ -d .git ]; then
     if [ -e .git/info/exclude ]; then
-      cat .git/info/exclude &#124; grep -v &quot;^#&quot; &gt;&gt; $EXCLUDE
+     sed &#039;/^#/d;s/\./\\./g;s/\*/.*/g&#039; .git/info/exclude &gt;&gt; $EXCLUDE
     fi
     DIR=`pwd`/.git/pristine
     rm -rf $DIR
@@ -363,7 +363,7 @@
 echo -n Checking \(-c\) CC Checkouts...
 if [ $RUN_CC_CHECKOUTS = &quot;TRUE&quot; ]; then

-  cleartool lsco -me -recurse -short $FILE_LIST $DIR_LIST &gt;\
+  cleartool lsco -me -cview -recurse -short $FILE_LIST $DIR_LIST &gt;\
       $DIR/cc_checkout

   if [ `cat $DIR/cc_checkout &#124; wc -l` != &quot;0&quot; ]; then

Regards

Gan</description>
		<content:encoded><![CDATA[<p>A small improvement I missed in the last patch: you can avoid the cat and grep invocations:</p>
<p>&#8212; pristine    2011-12-22 10:21:47.000000000 +0100<br />
+++ /home/adiiacm1/bin/pristine 2011-12-21 17:08:29.612148300 +0100<br />
@@ -63,7 +63,7 @@<br />
 # after appending gitignore to an exclude file<br />
 #<br />
 EXCLUDE=`pwd`/tmp.exclude<br />
-echo .git/ &gt; $EXCLUDE<br />
+echo &#8216;\.git/&#8217; &gt; $EXCLUDE<br />
 PREV_DIR=`pwd`<br />
 while [ 1 -eq 1 ]; do<br />
   if [ `pwd` = "/" -o `pwd` = "\\" ]; then<br />
@@ -72,11 +72,11 @@<br />
     cd $PREV_DIR<br />
     exit 1<br />
   elif [ -e .gitignore ]; then<br />
-    cat .gitignore | grep -v &#8220;^#&#8221; &gt;&gt; $EXCLUDE<br />
+   sed &#8216;/^#/d;s/\./\\./g;s/\*/.*/g&#8217; .gitignore &gt;&gt; $EXCLUDE<br />
   fi<br />
   if [ -d .git ]; then<br />
     if [ -e .git/info/exclude ]; then<br />
-      cat .git/info/exclude | grep -v &#8220;^#&#8221; &gt;&gt; $EXCLUDE<br />
+     sed &#8216;/^#/d;s/\./\\./g;s/\*/.*/g&#8217; .git/info/exclude &gt;&gt; $EXCLUDE<br />
     fi<br />
     DIR=`pwd`/.git/pristine<br />
     rm -rf $DIR<br />
@@ -363,7 +363,7 @@<br />
 echo -n Checking \(-c\) CC Checkouts&#8230;<br />
 if [ $RUN_CC_CHECKOUTS = "TRUE" ]; then</p>
<p>-  cleartool lsco -me -recurse -short $FILE_LIST $DIR_LIST &gt;\<br />
+  cleartool lsco -me -cview -recurse -short $FILE_LIST $DIR_LIST &gt;\<br />
       $DIR/cc_checkout</p>
<p>   if [ `cat $DIR/cc_checkout | wc -l` != "0" ]; then</p>
<p>Regards</p>
<p>Gan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gan Ainm</title>
		<link>http://genaud.net/2008/08/clearcase-globally-git-locally/comment-page-1/#comment-61502</link>
		<dc:creator>Gan Ainm</dc:creator>
		<pubDate>Wed, 21 Dec 2011 16:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://genaud.net/2008/08/clearcase-globally-git-locally/#comment-61502</guid>
		<description>Another issue:

When checking fo checkouts, don&#039;t forget the &quot;-cview&quot; option unless you want all your views checked which might cause pristine to give false positives!

Regards 

Gan</description>
		<content:encoded><![CDATA[<p>Another issue:</p>
<p>When checking fo checkouts, don&#8217;t forget the &#8220;-cview&#8221; option unless you want all your views checked which might cause pristine to give false positives!</p>
<p>Regards </p>
<p>Gan</p>
]]></content:encoded>
	</item>
</channel>
</rss>

