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

Discussion in 'Python' started by Jason Swails, Jun 16, 2013.

  1. Jason Swails

    Jason Swails Guest

    On Sat, Jun 15, 2013 at 11:55 PM, rusi <> wrote:

    > On Jun 16, 4:14 am, Chris Angelico <> wrote:
    > > On Sun, Jun 16, 2013 at 12:16 AM, Roy Smith <> 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/2007/12/06/the-woes-of-git-gc-aggressive-and-how-git-deltas-work/

    All the best,
    Jason
    Jason Swails, Jun 16, 2013
    #1
    1. Advertising

  2. Jason Swails

    rusi Guest

    On Jun 16, 7:09 pm, Jason Swails <> wrote:
    > On Sat, Jun 15, 2013 at 11:55 PM, rusi <> wrote:
    > > On Jun 16, 4:14 am, Chris Angelico <> wrote:
    > > > On Sun, Jun 16, 2013 at 12:16 AM, Roy Smith <> 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/2007/12/06/the-woes-of-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!
    rusi, Jun 16, 2013
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. V Green
    Replies:
    0
    Views:
    824
    V Green
    Feb 5, 2008
  2. PA Bear [MS MVP]
    Replies:
    0
    Views:
    929
    PA Bear [MS MVP]
    Feb 5, 2008
  3. Weng Tianxiang
    Replies:
    6
    Views:
    597
    Weng Tianxiang
    Jun 18, 2009
  4. Alec Taylor
    Replies:
    0
    Views:
    221
    Alec Taylor
    Sep 14, 2011
  5. Zero Piraeus

    Aggressive language on python-list

    Zero Piraeus, Oct 13, 2012, in forum: Python
    Replies:
    0
    Views:
    142
    Zero Piraeus
    Oct 13, 2012
Loading...

Share This Page