Tuesday, January 25, 2011

kdeexamples moves to git!

My KDE hero of the day is Nicolás 'PovAddict' Alvarez who dove into the KDE Examples module and turned it into a git module, complete with history even of the examples that existed prior to the creation of the KDE Examples module intact! When I queried Ian Monroe the other day about how much work it would be to migrate this module over, Nicolás simply jumped in and attacked the problem with the usual KDE gleam in the eye.

The sys admins were also as usual right on the ball and the server-side stuff was set up very quickly. Did you know that they now have a repository request form that makes it even easier? It's brand new, and I didn't even know it was there until Tom Albers pointed me to it.

The result is that you can find KDE Examples on projects.kde.org and clone it with "git clone git://anongit.kde.org/kdeexamples" or (for read-write access) "git clone git@git.kde.org:kdeexamples".

This module is open for all KDE libraries and applications that wish to offer example code to help other developers get up to speed quicker. If your app has plugins, KDE Examples is a great place to host an example or three. If you publish a library, KDE Examples is the perfect place to show how it can be used. In fact, just last week I used the Attica example in KDE Examples to quickly figure out how to use it for my Hot New Stuff needs. It really works! :)

Something I'm really looking forward to with kdeexamples being in git is that I can now very easily have local branches where I keep variations on the Plasma examples that I use for testing Plasma features while I work on them. These modifications are not usually suitable for pushing to the main repository as examples: usually it's just uglifications and debug spewing to meet my testing and debugging needs. With git it's so much easier to keep all that straight and tidy.

Oh, and the repository now takes 1/3rd the space on disk: 3 vs 9 MB. Win.

0 comments: