git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What is the difference between git-gc, git-repack and git-prune?
@ 2008-05-07  2:44 DigitalPig
  2008-05-07  2:53 ` Avery Pennarun
  0 siblings, 1 reply; 2+ messages in thread
From: DigitalPig @ 2008-05-07  2:44 UTC (permalink / raw)
  To: git

Hi!

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!


Zhenqing

-- 
DigitalPig
E-mail: digitalpiglee AT gmail DOT com
ALL WE SEEN IS ILLUSION.

*Fudan University Macromoleculer Science Forum*
http://fudanmacro.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What is the difference between git-gc, git-repack and git-prune?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Avery Pennarun @ 2008-05-07  2:53 UTC (permalink / raw)
  To: DigitalPig; +Cc: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-07  2:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).