Had a busy two weeks reviving the Cpu-Hotplug effort. Two versions have already been posted and the just finished porting the third one against the latest kernel version. And that’s when I finally got around to use Git.

Git is a source code management software project started by Linus Torvalds and now maintained by Junio Hamano. There are probably a million howtos out there,on how to use Git, but I followed the one which I thought was easier for me to follow, given the nature of my job.

Kernel Hackers’ Guide to Git

I cloned the git repository and created my own branches, ported the cpu-hotplug patches. For a person who had been using quilt all this while to create and maintain patches, git is very useful. The best part is that you could actually see the whole development process since it keeps track of each commit. So for example, if I wanted to know how a particular file, say kernel/cpu.c has changed over years, I just type

git whatchanged kernel/cpu.c

and you could see every single commit that went in since version 2.6.12 something. Pretty Amazing!

Next time I am wondering why a particular ‘if’ clause exists in the code, using git, I can find out, who added it, and what was the changelog look like when it was added.

Other than that, you could also checkout a particular kernel version say 2.6.18. So instead of maintaining a whole bunch of compressed kernel source files, all I need now is a git repo and maintain different branches for different development projects that I am working on.

The other cool utility was StGit. It’s a quilt type of a utility that allows you to create new patches, push and pop. So developers already familiar with quilt can use that with atmost ease.

Hope to discover more useful features with continued usage 🙂

And here’s to a Great Weekend ahead!!


About gautshen

A jack of many trades of which , Linux Kernel Programming puts food on the table. Also pursuing his PhD in the area Theoretical Computer Science at the Chennai Mathematical Institute. Is an avid reader interested in the Hindu traditions and philosophy. Loves Bicycling and Good Music. Name is Ranjal Gautham Shenoy.
This entry was posted in geek, linux, reviews and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s