From: "Avery Pennarun" <apenwarr@gmail.com>
To: DigitalPig <digitalpiglee@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: What is the difference between git-gc, git-repack and git-prune?
Date: Tue, 6 May 2008 22:53:22 -0400 [thread overview]
Message-ID: <32541b130805061953s7ef38990r44d9966af0c8d9ea@mail.gmail.com> (raw)
In-Reply-To: <873aoux284.fsf@gmail.com>
On 5/6/08, DigitalPig <digitalpiglee@gmail.com> wrote:
> For git-prune, according to the manual, it will delete all the dangling
> objects. So it is easy to understand. However, in the git-gc manpage,
> there is another option named "--prune". Does that make git-gc do the
> same thing as git-prune?
>
> And manpage of git-gc says it cleans unnecessary files and compresses
> the objects, and git-repack also compresses the objects too. Are there
> any difference between these two operations? Or do I need to invoke
> git-repack after running git-gc? Thanks!
git-gc is a fancy wrapper that automatically calls git-repack and
git-prune for you with the most commonly used options, so you usually
don't need to run the others yourself.
Avery
prev parent reply other threads:[~2008-05-07 2:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 2:44 What is the difference between git-gc, git-repack and git-prune? DigitalPig
2008-05-07 2:53 ` Avery Pennarun [this message]
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=32541b130805061953s7ef38990r44d9966af0c8d9ea@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=digitalpiglee@gmail.com \
--cc=git@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).