<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7625526986034013157.post5434904962625894998..comments</id><updated>2010-04-14T20:02:58.663-07:00</updated><category term='plugins rails'/><category term='essays'/><category term='ruby'/><category term='git-tmbundle'/><category term='vim'/><category term='textmate'/><category term='solutions'/><category term='javascript'/><category term='git'/><category term='nerd'/><title type='text'>Comments on Tim, the Enchanter: Garbage collect every git repository on your machi...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tim.theenchanter.com/feeds/5434904962625894998/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7625526986034013157/5434904962625894998/comments/default'/><link rel='alternate' type='text/html' href='http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html'/><author><name>Tim Harper</name><uri>http://www.blogger.com/profile/03349408198556972919</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_7HPuw-ljjoY/S7eBtBJOBlI/AAAAAAAAAhg/Oo_4-NSOb6k/S220/tim.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7625526986034013157.post-3327547852275053539</id><published>2010-04-14T19:08:09.856-07:00</published><updated>2010-04-14T19:08:09.856-07:00</updated><title type='text'>Thanks. And a nice use of pushd/popd and find.</title><content type='html'>Thanks. And a nice use of pushd/popd and find.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7625526986034013157/5434904962625894998/comments/default/3327547852275053539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7625526986034013157/5434904962625894998/comments/default/3327547852275053539'/><link rel='alternate' type='text/html' href='http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html?showComment=1271297289856#c3327547852275053539' title=''/><author><name>Sonia</name><uri>http://soniahamilton.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html' ref='tag:blogger.com,1999:blog-7625526986034013157.post-5434904962625894998' source='http://www.blogger.com/feeds/7625526986034013157/posts/default/5434904962625894998' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1033009718'/></entry><entry><id>tag:blogger.com,1999:blog-7625526986034013157.post-220408577965264635</id><published>2008-06-13T12:38:00.000-07:00</published><updated>2008-06-13T12:38:00.000-07:00</updated><title type='text'>That's a great tip Jakub&lt;br&gt;&lt;br&gt;I still slightly p...</title><content type='html'>That's a great tip Jakub&lt;BR/&gt;&lt;BR/&gt;I still slightly prefer the "pushd" operation, because pushd and popd will output the directory stack upon execution, which makes it a little more verbose.&lt;BR/&gt;&lt;BR/&gt;I also know you can pass the -exec parameter to find and substitute in a parameter there.  But, for some reason, the while loop is so much more legible to me than:&lt;BR/&gt;&lt;BR/&gt;find . -type d -name .git -exec git --git-dir={} gc --prune \;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7625526986034013157/5434904962625894998/comments/default/220408577965264635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7625526986034013157/5434904962625894998/comments/default/220408577965264635'/><link rel='alternate' type='text/html' href='http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html?showComment=1213385880000#c220408577965264635' title=''/><author><name>Tim Harper</name><uri>http://www.blogger.com/profile/03349408198556972919</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html' ref='tag:blogger.com,1999:blog-7625526986034013157.post-5434904962625894998' source='http://www.blogger.com/feeds/7625526986034013157/posts/default/5434904962625894998' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2142473342'/></entry><entry><id>tag:blogger.com,1999:blog-7625526986034013157.post-9087392493516617495</id><published>2008-06-13T06:33:00.000-07:00</published><updated>2008-06-13T06:33:00.000-07:00</updated><title type='text'>Instead of 'pushd "$dir"; git gc --prune; popd;' y...</title><content type='html'>Instead of 'pushd "$dir"; git gc --prune; popd;' you can simply use 'git --git-dir="$dir" gc --prune;'</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7625526986034013157/5434904962625894998/comments/default/9087392493516617495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7625526986034013157/5434904962625894998/comments/default/9087392493516617495'/><link rel='alternate' type='text/html' href='http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html?showComment=1213363980000#c9087392493516617495' title=''/><author><name>Jakub Narebski</name><uri>http://www.blogger.com/profile/11847202568800326989</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_Et42Fbl4wPE/R5sV4qUlmaI/AAAAAAAAAAM/QI_1hAKVdbc/S220/jnareb_4d_64x64-grayscale.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html' ref='tag:blogger.com,1999:blog-7625526986034013157.post-5434904962625894998' source='http://www.blogger.com/feeds/7625526986034013157/posts/default/5434904962625894998' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2129471199'/></entry><entry><id>tag:blogger.com,1999:blog-7625526986034013157.post-2221720286914711225</id><published>2008-06-13T06:29:00.000-07:00</published><updated>2008-06-13T06:29:00.000-07:00</updated><title type='text'>Current version of git has "git gc --auto", which ...</title><content type='html'>Current version of git has "git gc --auto", which is invoked by some git commands, but by default it expires (removes) only 'old garbage'.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7625526986034013157/5434904962625894998/comments/default/2221720286914711225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7625526986034013157/5434904962625894998/comments/default/2221720286914711225'/><link rel='alternate' type='text/html' href='http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html?showComment=1213363740000#c2221720286914711225' title=''/><author><name>Jakub Narebski</name><uri>http://www.blogger.com/profile/11847202568800326989</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_Et42Fbl4wPE/R5sV4qUlmaI/AAAAAAAAAAM/QI_1hAKVdbc/S220/jnareb_4d_64x64-grayscale.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tim.theenchanter.com/2008/06/garbage-collect-every-git-repository-on.html' ref='tag:blogger.com,1999:blog-7625526986034013157.post-5434904962625894998' source='http://www.blogger.com/feeds/7625526986034013157/posts/default/5434904962625894998' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2129471199'/></entry></feed>
