This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: git is live
- From: Pedro Alves <palves at redhat dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, GDB Development <gdb at sourceware dot org>, Binutils Development <binutils at sourceware dot org>
- Date: Tue, 29 Oct 2013 19:25:09 +0000
- Subject: Re: git is live
- Authentication-results: sourceware.org; auth=none
- References: <877gd5iyaz dot fsf at fleche dot redhat dot com> <CAHACq4o_Lgy7G5c9rRLB1tijmEngrOn8UgsQVdrnk9j8o1=D1A at mail dot gmail dot com> <5266CCDC dot 6090803 at redhat dot com> <CAHACq4qqw4MZznnW7zAnOMW2kHEYRRyymAphoEiY1Of5Qeks8w at mail dot gmail dot com> <87iowgalle dot fsf at fleche dot redhat dot com> <CAHACq4pfgqZ9kso-+LTw2CmZGjoq-FKmt7NACEqj=X563obccQ at mail dot gmail dot com>
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