git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git repository size vs. subversion repository size

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Apr 5, 2008, 00:18 UTC
Message-ID
<20080405001809.GA3101@atjola.homenet>
In-Reply-To
<20080405000141.GA23633@dervierte>
[Stephan, please stop dropping me from Cc:, thanks]
On 2008.04.04 20:01:41 -0400, Steven Walter wrote:
Show 12 quoted lines
> On Fri, Apr 04, 2008 at 07:49:24PM -0400, Stephen Bannasch wrote:
> > I'm just fooling around with git so far but I found a huge space savings 
> > after running git gc. Here are the rough numbers:
> >
> > svn repo on server:        1GB
> > svn repo checked out:      2GB
> > git svn clone after gc:  384MB
> >
> > That's saving the full history in git -- about 13000 revisions.
> 
> git-gc is such an important step in importing a repository from svn.
> Why doesn't git-svn take this vital step automatically?

Starting from 1.5.4 (IIRC) git-svn will repack every 1000 revisions (by default). That won't give you a reeeeally tiny pack but OTOH it won't take ages to do the repacks either.

Björn
Previous: Stephen BannaschNext: Eric Hanchrow
Message 6 of 11 in “git repository size vs. subversion repository size”
  1. Sean BrownApr 4, 2008
  2. Björn SteinbrinkApr 4, 2008
  3. Stephen BannaschApr 4, 2008
  4. Steven WalterApr 5, 2008
  5. Stephen BannaschApr 5, 2008
  6. Björn SteinbrinkApr 5, 2008
  7. Eric HanchrowApr 14, 2008
  8. Sean BrownApr 5, 2008
  9. Björn SteinbrinkApr 5, 2008
  10. Jan HudecApr 13, 2008
  11. Shawn O. PearceApr 5, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.