git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* does a successful 'git gc' imply 'git fsck'
@ 2012-12-02  2:31 Sitaram Chamarty
  2012-12-02  4:28 ` Shawn Pearce
  2012-12-02  9:31 ` Junio C Hamano
  0 siblings, 2 replies; 7+ messages in thread
From: Sitaram Chamarty @ 2012-12-02  2:31 UTC (permalink / raw)
  To: Git Mailing List

Hi,

Background: I have a situation where I have to fix up a few hundred
repos in terms of 'git gc' (the auto gc seems to have failed in many
cases; they have far more than 6700 loose objects).  I also found some
corrupted objects in some cases that prevent the gc from completing.

I am running "git gc" followed by "git fsck".  The majority of the
repos I have worked through so far appear to be fine, but in the
larger repos (upwards of 2-3 GB) the git fsck is taking almost 5 times
longer than the 'gc'.

If I could assume that a successful 'git gc' means an fsck is not
needed, I'd save a lot of time.  Hence my question.

-- 
Sitaram

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

end of thread, other threads:[~2012-12-03 14:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-02  2:31 does a successful 'git gc' imply 'git fsck' Sitaram Chamarty
2012-12-02  4:28 ` Shawn Pearce
2012-12-02  8:46   ` Sitaram Chamarty
2012-12-02  9:31 ` Junio C Hamano
2012-12-03 13:14   ` Sitaram Chamarty
2012-12-03 13:46   ` Matthieu Moy
2012-12-03 14:06     ` Junio C Hamano

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