Re: git is live

Pedro Alves
2013-10-29T19:25:18Z

On 10/29/2013 06:12 PM, Cary Coutant wrote:

> I'm not sure how much I've bloated my repo just from fetching the one
> branch -- presumably it's not a lot, since the content store is based
> on hashes, but I might reclone and compare sizes just to see.

...

> (Maybe a > git gc will clean things up, too.)

That's my expectation.

Note you can list branches you might have still based on the
old git cvs mirror repo with e.g.,:

$ git branch --contains 14cd51f7793a9ce07bc435069f57269450141363

That's the hash of the initial commit in the old git cvs mirror.

(myself, I've put that in a 'git-gdb-old-branches' script for
convenience.)

Do:

$ git branch -a --contains 14cd51f7793a9ce07bc435069f57269450141363

to include remote branches in the query.

Once that gives the empty set, garbage collection should
be able to shrink your repo.

I have remotes pointing to other people's random repos based
off the git/cvs mirror out there, so I expect it'll be a
long while before that'll ever happen for me. But I'm really
not worried about that myself.

--
Pedro Alves