Git development
 help / color / mirror / Atom feed
From: linux@horizon.com
To: linux@horizon.com, nico@cam.org
Cc: git@vger.kernel.org
Subject: Re: git-repack made my pack 317x larger...
Date: 15 Jun 2007 10:54:33 -0400	[thread overview]
Message-ID: <20070615145433.22970.qmail@science.horizon.com> (raw)
In-Reply-To: <alpine.LFD.0.99.0706150935530.5651@xanadu.home>

>> Uh... what happened?  It's not a full kernel clone, but it's a lot more
>> objects than I expected.  Where did all the extra objects come from?

> Maybe you want to add -l as well to your git-repack invocation.

Ah.  Thank you.  Indeed, this is another example of git documentation
disease.  git-repack refers to git-pack-objects, which gives a very
technical explanation of what it does, but nowhere is it mentioned that
list of objects suppled to git-pack-object's stdin includes objects
borrowed from alternates.

Of course, reading the description of git-rev-list --objects, you might
get the impression, but it's not exactly hugely obvious.

Given that "git-repack -f" is a not uncommon command, could I suggest
that the default is wrong, and there should be a special flag for
"suck in alternates, so this repository is no longer dependent
on any others".

Mentally, git-repack is a "reduce space consumption" command, not an
increase one.  Having to remember that this repository uses alternates
and add an extra flag to avoid having a space explosion is distinctly
annoying.

(I might complan a little less if git-repack would take -adlf rather
than insisting on -a -d -l -f.  Is that a deliberate choice or has just
nobody stepped up to revamp the option parsing?)

  reply	other threads:[~2007-06-15 14:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-15  8:50 git-repack made my pack 317x larger linux
2007-06-15 13:39 ` Nicolas Pitre
2007-06-15 14:54   ` linux [this message]
2007-06-15 15:10     ` Benjamin Sergeant
2007-06-15 15:53     ` Nicolas Pitre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070615145433.22970.qmail@science.horizon.com \
    --to=linux@horizon.com \
    --cc=git@vger.kernel.org \
    --cc=nico@cam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox