git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Lots of loose objects
@ 2007-10-10 19:13 David Kågedal
  2007-10-10 19:37 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: David Kågedal @ 2007-10-10 19:13 UTC (permalink / raw)
  To: Git Mailing List

I hade a tree that made git-gui complain that I had too many loose
objects every time I started it (3072 to be precise).  Letting git-gui
compress it for me didn't help.  Neither did git-gc, even with the
--aggressive flag.

I noticed that I had a lot of loose files in .git/objects, and
suddenly I remembered that there was a command called "git
prune". Finally I was able to get rid of those loose objects.

The problem here is probably mostly that I couldn't get any help from
git-gui or git-gc.  git-gui claimed it would fix the problem for me,
but failed.  git-gc didn't mention that it left a bunch of files
untouched.

-- 
David Kågedal

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

* Re: Lots of loose objects
  2007-10-10 19:13 Lots of loose objects David Kågedal
@ 2007-10-10 19:37 ` Johannes Schindelin
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2007-10-10 19:37 UTC (permalink / raw)
  To: David Kågedal; +Cc: Git Mailing List

[-- Attachment #1: Type: TEXT/PLAIN, Size: 778 bytes --]

Hi,

On Wed, 10 Oct 2007, David Kågedal wrote:

> I hade a tree that made git-gui complain that I had too many loose
> objects every time I started it (3072 to be precise).  Letting git-gui
> compress it for me didn't help.  Neither did git-gc, even with the
> --aggressive flag.
> 
> I noticed that I had a lot of loose files in .git/objects, and
> suddenly I remembered that there was a command called "git
> prune". Finally I was able to get rid of those loose objects.

Probably git-gui should check again, after the compacting stage, how many 
loose objects there are, and suggest to run git prune after a sufficiently 
terrifying warning message ("Should I prune unreferenced objects?  (DON'T 
do this if you share objects between repositories!) Yes / No").

Ciao,
Dscho

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

end of thread, other threads:[~2007-10-10 19:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 19:13 Lots of loose objects David Kågedal
2007-10-10 19:37 ` Johannes Schindelin

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