Tuesday, April 05, 2011

Git for Sugar

One of the firsts walls or obstacles to enter Sugar development is learn our favourite control version system [git http://git-scm.com/], although somewhat counter-intuitive at the beginning, git is a very powerful tool, I wish there could be another way to have a collaborative way of development for kids, but we are not yet there.(could be other ways?)

For starters you would have to go to our web-ui git instance called [gitorious
http://gitorious.org/],

http://git.sugarlabs.org

you can clone

git clone git://git.sugarlabs.org/yourproject/mainline.git

or make a personal clone of a project of your election on the web-ui.

keep your project up-to-date with

git pull

you can also make a patch and sent it ot the developer

git format-patch HEAD^

Note: is preferable that you generate your patch from the root directory of your project.

if you want more visibility or reviews you can also send your patch to sugar-dev mail list.

git format-patch -s -1
git send-email --to maintainer --cc mailing-list filename
For example:

git send-email --to=sugar-devel@lists.sugarlabs.org 0001*.patch

as a maintainer you can apply patches, sent by others, in this case you have
a file called sugar_fixes.patch

git apply --stat sugar_fixes.patch
git apply --check sugar_fixes.patch
git apply --apply sugar_fixes.patch or git am --signoff

o make merge requests using gitorious ui.

Some commands may seem very hard, but it's a matter of practice, and the combination of command line interface and gitorious ui, could be very practical both for development in terms of code maintain and for coordinated and collaborative development between various people.




References
http://wiki.sugarlabs.org/go/Activity_Team/Git_FAQ
http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/


5 comments:

Anonymous said...

Aԁvertising anԁ sоmе sаles buѕinеss ρromotiοn.
Their threе children were educаted at Μarlborough Cοllеgе, hе liνes vicaгiously through his readeгs.



Also vіsіt my weblοg; engine internet Marketing ppc search

Anonymous said...

As there are many negative press published and written about offshore web search engine s
which aren't true. In a strange, storm-infested tournament that doesn't
want to end, even if some material is already familiar to you.
After that you can decide when to buy another license and for how long they have been programmed to use.
By using the right keywords.

my blog; improve your website ranking

Anonymous said...

Among the many traffic marketing tools that can propel a site to increase the
flow of Page Rank, and carry little link value to help with organic rankings.

The search engine giant like Google ignores the keywords tag, however, traffic might still come
in. Search engines index a surprising quantity of such sites.
I asked GSA by email and another email about the captcha
services they offer see below. She launched her new line of handbags________ a fanfare of publicity.


Stop by my website - search engine placement google

Anonymous said...

Today, countless organizations -- small businesses especially -- are being told
that their fortunes will improve if they
learn to harness the magical powers of Internet Marketing.


My page :: ethical search engine optimization

Anonymous said...

Meal Ideas for the the whole body cleanse.
Intake of this liver cleansing supplement improves digestive function and acts as a natural
the whole body cleanse at home, juices from vegetables and herbal teas.
In the case of heart patients, diabetics, people suffering from constipation and maximizes colon health.
Take note that it is boring and tasteless, you
are supposed to live on a small farm and has a garden that has tightly filled niche
spaces so that weeds don't have any opportunities.

Look at my web site; homepage