git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Optimizing repository speed
@ 2007-02-19 14:37 Bill Lear
  2007-02-19 15:14 ` Theodore Tso
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Lear @ 2007-02-19 14:37 UTC (permalink / raw)
  To: git

As part of our conversion to git 1.5, I would like to ensure that
our code repository does not get crufty and slow.  Currently, I have
a cron job that runs each morning that does a 'git repack -a -d'.

I know there is 'git-gc', and it appears to do all sorts of good
things.  Can I simply replace my call to 'git repack -d -a' with 'git
gc', or is there anything else I might want to do?


Bill

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

* Re: Optimizing repository speed
  2007-02-19 14:37 Optimizing repository speed Bill Lear
@ 2007-02-19 15:14 ` Theodore Tso
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2007-02-19 15:14 UTC (permalink / raw)
  To: Bill Lear; +Cc: git

On Mon, Feb 19, 2007 at 08:37:38AM -0600, Bill Lear wrote:
> As part of our conversion to git 1.5, I would like to ensure that
> our code repository does not get crufty and slow.  Currently, I have
> a cron job that runs each morning that does a 'git repack -a -d'.
> 
> I know there is 'git-gc', and it appears to do all sorts of good
> things.  Can I simply replace my call to 'git repack -d -a' with 'git
> gc', or is there anything else I might want to do?

git-gc is a strict superset of git repack -a -d.  Specifically, what
it does is:

git-pack-refs --prune
git-reflog expire --al 
git-repack -a -d -l
git-rerere gc

It will also through in a git-prune if you do add --prune to the
git-gc call, but you really don't want to run that out of a cron job.

Regards,

						- Ted

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

end of thread, other threads:[~2007-02-19 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-19 14:37 Optimizing repository speed Bill Lear
2007-02-19 15:14 ` Theodore Tso

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).