git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: John Dlugosz <JDlugosz@TradeStation.com>
Cc: git@vger.kernel.org
Subject: Re: dangling commits and blobs: is this normal?
Date: Wed, 22 Apr 2009 11:27:20 -0400	[thread overview]
Message-ID: <20090422152719.GA12881@coredump.intra.peff.net> (raw)
In-Reply-To: <450196A1AAAE4B42A00A8B27A59278E70ACE0502@EXCHANGE.trad.tradestation.com>

On Tue, Apr 21, 2009 at 05:46:16PM -0400, John Dlugosz wrote:

> Immediately after doing a git gc, a git fsck --full reports dangling
> objects.  Is this normal?  What does dangling mean, if not those things
> that gc finds?

gc will leave dangling loose objects for a set expiration time
(defaulting to two weeks). This makes it safe to run even if there are
operations in progress that want those dangling objects, but haven't yet
added a reference to them (as long as said operation takes less than two
weeks).

You can also end up with dangling objects in packs. When that pack is
repacked, those objects will be loosened, and then eventually expired
under the rule mentioned above. However, I believe gc will not always
repack old packs; it will make new packs until you have a lot of packs,
and then combine them all (at least that is what "gc --auto" will do; I
don't recall whether just "git gc" follows the same rule).

-Peff

  reply	other threads:[~2009-04-22 15:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-21 21:46 dangling commits and blobs: is this normal? John Dlugosz
2009-04-22 15:27 ` Jeff King [this message]
2009-04-22 16:53   ` Brandon Casey
2009-04-22 17:39     ` Nicolas Pitre
2009-04-22 18:15       ` Matthieu Moy
2009-04-22 19:08         ` Jeff King
2009-04-22 19:45           ` Brandon Casey
2009-04-22 19:58             ` Jeff King
2009-04-22 20:07             ` Nicolas Pitre
2009-04-23 11:51           ` Matthieu Moy
2009-04-22 19:14         ` Nicolas Pitre
2009-04-22 19:26       ` Brandon Casey
2009-04-22 20:00         ` Nicolas Pitre
2009-04-22 20:05           ` Jeff King
2009-04-22 20:11             ` Nicolas Pitre
2009-04-23 17:43             ` Geert Bosch
2009-04-23 17:56               ` Shawn O. Pearce
2009-04-23 18:10                 ` Geert Bosch
2009-04-23 18:17                   ` Matthias Andree
2009-04-23 18:51               ` Nicolas Pitre
2009-04-22 20:15   ` John Dlugosz

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=20090422152719.GA12881@coredump.intra.peff.net \
    --to=peff@peff.net \
    --cc=JDlugosz@TradeStation.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).