Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Git/Gerrit Proposal

On Jun 9, 2010, at 17:29, Andrew Gvozdev wrote:

If I am able to import to the workspace only selected project, that will eliminate 1 of the 2 issues. I'd still have to pull all the mass of the great changes the prolific debug team is contributing. My internet connection at home is not that great. Well, it won't make my vote negative anyway. I still think that component level is best for CDT in general but I can live with any other too.

Yes, regardless of what is in a repository, you can have nothing, everything, or anywhere in between in the workspace. So you can avoid having projects if you don't want them in (but they'll still be in the repository and on disk).

Actually, Git's checkout is insanely faster than anything else. Yes, it takes a while to do the initial checkout (but hey, it takes an age for the initial CVS checkout, huh?).

Once you've done the checkout, the incremental deltas that you download are so small you hardly notice them. Furthermore, unlike CVS or (AFAIK) SVN, the deltas are compressed, not only individually but as a whole as well.

And the great thing is, you can work completely disconnected from the network and continue to work on changes and patches. I've practically got into the habit of using 'git commit' like an auto-save feature, it's that fast/useful.

So if reducing network bandwidth is your goal, then git will be a great benefit. Try doing a 'cvs checkout' and a 'git clone' and compare the time it takes to download them. If you want to use a smaller example set, you can try (the now defunct):

svn checkout http://objectiveclipse.googlecode.com/svn/trunk/ objectiveclipse-read-only

vs

git clone git://github.com/alblue/objectiveclipse.git

which contains exactly the same set of code. If you can't speak git over a firewall, then you can do:

git clone http://github.com/alblue/objectiveclipse.git

- but make sure you're using git 1.7 to get the best performance of git over http for a sane test.

Alex


Back to the top