Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > on git gc --aggressive [was Re: Version Control Software]

Reply
Thread Tools

on git gc --aggressive [was Re: Version Control Software]

 
 
Jason Swails
Guest
Posts: n/a
 
      06-16-2013
On Sat, Jun 15, 2013 at 11:55 PM, rusi <(E-Mail Removed)> wrote:

> On Jun 16, 4:14 am, Chris Angelico <(E-Mail Removed)> wrote:
> > On Sun, Jun 16, 2013 at 12:16 AM, Roy Smith <(E-Mail Removed)> wrote:
> > > The advantage of DVCS is that everybody has a full copy of the repo.
> > > The disadvantage of the DVCS is that every MUST have a full copy of the
> > > repo. When a repo gets big, you may not want to pull all of that data
> > > just to get the subtree you need.

> >
> > Yeah, and depending on size, that can be a major problem. While git
> > _will_ let you make a shallow clone, it won't let you push from that,
> > so it's good only for read-only repositories (we use git to manage
> > software deployments at work - shallow clones are perfect) or for
> > working with patch files.
> >
> > Hmm. ~/cpython/.hg is 200MB+, but ~/pike/.git is only 86MB. Does
> > Mercurial compress its content? A tar.gz of each comes down, but only
> > to ~170MB and ~75MB respectively, so I'm guessing the bulk of it is
> > already compressed. But 200MB for cpython seems like a lot.

>
> [I am assuming that you have run "git gc --aggressive" before giving
> those figures]
>


Off-topic, but this is a bad idea in most cases. This is a post including
an email from Torvalds proclaiming how and why git gc --aggressive is dumb
in 99% of cases and should rarely be used:

http://metalinguist.wordpress.com/20...t-deltas-work/

All the best,
Jason

 
Reply With Quote
 
 
 
 
rusi
Guest
Posts: n/a
 
      06-16-2013
On Jun 16, 7:09*pm, Jason Swails <(E-Mail Removed)> wrote:
> On Sat, Jun 15, 2013 at 11:55 PM, rusi <(E-Mail Removed)> wrote:
> > On Jun 16, 4:14 am, Chris Angelico <(E-Mail Removed)> wrote:
> > > On Sun, Jun 16, 2013 at 12:16 AM, Roy Smith <(E-Mail Removed)> wrote:
> > > > The advantage of DVCS is that everybody has a full copy of the repo..
> > > > The disadvantage of the DVCS is that every MUST have a full copy ofthe
> > > > repo. *When a repo gets big, you may not want to pull all of thatdata
> > > > just to get the subtree you need.

>
> > > Yeah, and depending on size, that can be a major problem. While git
> > > _will_ let you make a shallow clone, it won't let you push from that,
> > > so it's good only for read-only repositories (we use git to manage
> > > software deployments at work - shallow clones are perfect) or for
> > > working with patch files.

>
> > > Hmm. ~/cpython/.hg is 200MB+, but ~/pike/.git is only 86MB. Does
> > > Mercurial compress its content? A tar.gz of each comes down, but only
> > > to ~170MB and ~75MB respectively, so I'm guessing the bulk of it is
> > > already compressed. But 200MB for cpython seems like a lot.

>
> > [I am assuming that you have run *"git gc --aggressive" before giving
> > those figures]

>
> Off-topic, but this is a bad idea in most cases. *This is a post including
> an email from Torvalds proclaiming how and why git gc --aggressive is dumb
> in 99% of cases and should rarely be used:
>
> http://metalinguist.wordpress.com/20...f-git-gc-aggre...


Yeah... Thanks for that link.
I knew there's something about gc and something about pack. Too much
of a git noob to know which is which!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace pip installed package with latest git version? Alec Taylor Python 0 09-14-2011 08:44 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
CD-ROM making aggressive buzzing noise Daniel Computer Support 1 06-04-2004 01:43 PM



Advertisments