git filter-branch should run git gc --auto

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kevin Ballard
Date: Tuesday, January 22, 2008 - 7:43 pm

I just glanced at git-filter-branch.sh (and I must say I was  
incredibly surprised to find out it was a shell script) and it seems  
it never runs git-gc or git-repack. Doesn't that end up with the same  
problems as git-svn sans git-repack when filtering a large number of  
commits? I was just thinking, if I were to git-filter-branch on my  
massive repo (in fact, the same repo that started this thread, with  
over 33000 commits in the upstream svn repo), even if I just do  
something as simple as change the commit msg wont I end up with  
thousands of unreachable objects? I shudder to think how many  
unreachable objects I would have if I pruned the entire dports  
directory off of the tree.

Am I missing something, or does git-filter-branch really not do any  
garbage collection? I tried reading the source, but complex bash  
scripts are almost as bad as perl in terms of readability.

-Kevin Ballard

-- 
Kevin Ballard
http://kevin.sb.org
kevin@sb.org
http://www.tildesoft.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-svn should default to --repack, Kevin Ballard, (Fri Jan 18, 5:17 am)
Re: git-svn should default to --repack, Karl , (Fri Jan 18, 8:56 am)
Re: git-svn should default to --repack, Junio C Hamano, (Fri Jan 18, 1:44 pm)
Re: git-svn should default to --repack, Karl , (Sat Jan 19, 5:35 am)
Re: git-svn should default to --repack, Kevin Ballard, (Sat Jan 19, 8:05 am)
git filter-branch should run git gc --auto, Kevin Ballard, (Tue Jan 22, 7:43 pm)
Re: git filter-branch should run git gc --auto, Junio C Hamano, (Tue Jan 22, 7:46 pm)
Re: git filter-branch should run git gc --auto, Junio C Hamano, (Tue Jan 22, 7:52 pm)
Re: git filter-branch should run git gc --auto, Harvey Harrison, (Tue Jan 22, 7:54 pm)
Re: git filter-branch should run git gc --auto, Kevin Ballard, (Tue Jan 22, 7:58 pm)
Re: git filter-branch should run git gc --auto, Kevin Ballard, (Tue Jan 22, 8:03 pm)
Re: git filter-branch should run git gc --auto, Sam Vilain, (Tue Jan 22, 10:07 pm)
Re: git filter-branch should run git gc --auto, Mike Hommey, (Tue Jan 22, 11:44 pm)
Re: git filter-branch should run git gc --auto, Kevin Ballard, (Wed Jan 23, 1:18 am)
Re: git filter-branch should run git gc --auto, Johannes Schindelin, (Wed Jan 23, 6:00 am)
Re: git filter-branch should run git gc --auto, Junio C Hamano, (Wed Jan 23, 12:22 pm)