Re: "git gc" doesn't seem to remove loose objects any more
- From
Brandon Casey <casey@nrlssc.navy.mil>
- Date
- Dec 15, 2008, 17:11 UTC
- Message-ID
- <flFRWuefszqSabGvIxamBeKJiW26VnyHEVC9IErJWJA@cipher.nrlssc.navy.mil>
- In-Reply-To
- <20081215155610.GA11502@mit.edu>
Theodore Tso wrote:
> I've > often wished for a --yes-I-know-what-I-am-doing-and-it's-unsafe-but- > just-drop-the-unreachable-objects-cause-this-is-just-a-tracking-repository > option to "git gc".
repack -a -d -l
Notice the lowercase 'a'.
git-gc calls repack with uppercase 'A' which is what causes the unreachable objects to be unpacked. Little 'a', is for people who know what they are doing, and want git to just drop unreachable objects.
-brandon