{"thread":{"id":"10236","subject":"Lots of loose objects","startedAt":"2007-10-10T19:13:12Z","lastAt":"2007-10-10T19:37:48Z","messageCount":2,"participants":["David Kågedal","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"55398","messageId":"87myuqwzp3.fsf@lysator.liu.se","threadId":"10236","inReplyTo":null,"subject":"Lots of loose objects","fromName":"David Kågedal","fromEmail":"davidk@lysator.liu.se","sentAt":"2007-10-10T19:13:12Z","receivedAt":"2007-10-10T19:13:12Z","isPatch":false,"sender":{"key":"davidk@lysator.liu.se","avatar":"https://avatars.githubusercontent.com/u/60530?v=4"},"body":"I hade a tree that made git-gui complain that I had too many loose\nobjects every time I started it (3072 to be precise).  Letting git-gui\ncompress it for me didn't help.  Neither did git-gc, even with the\n--aggressive flag.\n\nI noticed that I had a lot of loose files in .git/objects, and\nsuddenly I remembered that there was a command called \"git\nprune\". Finally I was able to get rid of those loose objects.\n\nThe problem here is probably mostly that I couldn't get any help from\ngit-gui or git-gc.  git-gui claimed it would fix the problem for me,\nbut failed.  git-gc didn't mention that it left a bunch of files\nuntouched.\n\n-- \nDavid Kågedal\n"},{"id":"55403","messageId":"Pine.LNX.4.64.0710102035420.4174@racer.site","threadId":"10236","inReplyTo":"87myuqwzp3.fsf@lysator.liu.se","subject":"Re: Lots of loose objects","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-10-10T19:37:48Z","receivedAt":"2007-10-10T19:37:48Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 10 Oct 2007, David Kågedal wrote:\n\n> I hade a tree that made git-gui complain that I had too many loose\n> objects every time I started it (3072 to be precise).  Letting git-gui\n> compress it for me didn't help.  Neither did git-gc, even with the\n> --aggressive flag.\n> \n> I noticed that I had a lot of loose files in .git/objects, and\n> suddenly I remembered that there was a command called \"git\n> prune\". Finally I was able to get rid of those loose objects.\n\nProbably git-gui should check again, after the compacting stage, how many \nloose objects there are, and suggest to run git prune after a sufficiently \nterrifying warning message (\"Should I prune unreferenced objects?  (DON'T \ndo this if you share objects between repositories!) Yes / No\").\n\nCiao,\nDscho\n"}]}