schacon edited this page Sep 13, 2010 · 3 revisions
Clone this wiki locally

libGit Project

Why, oh why would anyone re-implement Git functionality in C? Git is
already written in C!

There are two reasons for this insanity. The first is that the core
Git code is GPL’d, which means you can’t embed it in any commercial or
closed source distributed product. We specifically want to do some
commercial stuff with Git and don’t want to fork out to shell calls to
do it.

The second major reason is that this library does not do any
command line stuff and never will, so it’s not really competing with
Git for anything. It is a linked library and is meant to be used by
other programs only. It is being built for an Obj-C program, but should
be able to be built as bindings for Ruby, Perl or Python (or whatever).

It is not designed to do everything that the core git project can do,
it is meant to provide object and packfile read and write access and basic
server functions.


I am not an incredible C coder. Please keep this in mind when reading this code. I am trying to write tests fairly consistently, so I’m hoping this will end up being a fairly stable library, but if you are a C superstud or studette, please help me improve my code. I basically implemented this entire thing in Ruby in 2 days, and it’s going to take me several months to get the same thing done in C.

Testing libGit

cd test make

Thats about it. It’s a pretty simple testing framework, but it’ll do.