From: "Mikael Magnusson" <mikachu@gmail.com>
To: "Bruce Stephens" <bruce.stephens@isode.com>
Cc: git@vger.kernel.org
Subject: Re: "git gc" doesn't seem to remove loose objects any more
Date: Mon, 15 Dec 2008 14:38:56 +0100 [thread overview]
Message-ID: <237967ef0812150538n671c22b8gaf7a7b5dcaf68433@mail.gmail.com> (raw)
In-Reply-To: <808wqhzjl9.fsf@tiny.isode.net>
2008/12/15 Bruce Stephens <bruce.stephens@isode.com>:
> I couldn't see a test for this, but perhaps I'm just missing it?
>
> brs% git count-objects
> 161 objects, 1552 kilobytes
> brs% git gc
> Counting objects: 80621, done.
> Compressing objects: 100% (22372/22372), done.
> Writing objects: 100% (80621/80621), done.
> Total 80621 (delta 57160), reused 80305 (delta 56884)
> brs% git count-objects
> 207 objects, 2048 kilobytes
>
>
> And I see lots of directories under .git/objects which confirms
> things.
>
> I don't think I've changed any relevant configuration.
>
> This is with 8befc50c49e8a271fd3cd7fb34258fe88d1dfcad (also whatever
> version I used before, erm, probably
> de0db422782ddaf7754ac5b03fdc6dc5de1a9ae4), and possibly earlier
> versions---I've just started noticing now that the number of loose
> objects has started causing git gui to complain.
>
> (Hmm, I note that git gui reports a larger number of loose objects
> than git count-objects. Ah, OK, it really is just an approximation,
> so no surprise.)
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
IIRC git gc only removes loose objects older than two weeks, if you
really want to remove them now, run git prune. But make sure no other
git process can be active when you run it, or it could possibly step
on something.
--
Mikael Magnusson
next prev parent reply other threads:[~2008-12-15 13:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-15 12:52 "git gc" doesn't seem to remove loose objects any more Bruce Stephens
2008-12-15 13:38 ` Mikael Magnusson [this message]
2008-12-15 14:08 ` Bruce Stephens
2008-12-15 14:08 ` Björn Steinbrink
2008-12-15 15:56 ` Theodore Tso
2008-12-15 16:12 ` Mark Brown
2008-12-15 16:59 ` Johan Herland
2008-12-15 16:59 ` Mikael Magnusson
2008-12-15 17:07 ` Jakub Narebski
2008-12-15 19:38 ` Theodore Tso
2008-12-15 17:11 ` Brandon Casey
2008-12-15 17:38 ` [PATCH] objects to be pruned immediately don't have to be loosened Nicolas Pitre
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=237967ef0812150538n671c22b8gaf7a7b5dcaf68433@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=bruce.stephens@isode.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).