Carlos Martín Nieto 4f507b8146 Make the repo a gen_server
This helps us make sure we only have one thread accessing a particular
repo at a time and hopefully help us be more in line with usual erlang
practices.
2013-04-06 18:34:02 +02:00
2013-04-02 17:13:18 +02:00
2013-04-06 18:34:02 +02:00
2013-03-30 15:11:29 +01:00
2013-03-02 12:34:21 +01:00
2013-04-01 16:46:25 +03:00
2012-08-14 00:50:44 +02:00

Geef (Git NIF)

Geef is a simple Erlang NIF that exposes some of the libgit2 library functions to Erlang.

INSTALLING AND RUNNING

First you need to install libgit2:

$ git clone git://github.com/libgit2/libgit2.git
$ cd libgit2
$ make
$ make install

Now, if you have Erlang OTP_R13B04 installed, you can compile this NIF to run in it.

$ git clone git://github.com/schacon/geef.git
$ cd geef
$ make

The API looks basically like this:

{ok, Repo} = geef_repo:open(<<".">>).
Workdir = geef_repo:workdir(Repo).
{ok, Odb} = geef_repo:odb(Repo).
Exists = Odb:exists(HexSha).

CONTRIBUTING

Fork schacon/geef on GitHub, make it awesomer (preferably in a branch named for the topic), send a pull request.

AUTHORS

Scott Chacon schacon@gmail.com

LICENSE

MIT.

Description
No description provided
Readme 357 KiB
Languages
C 44%
Erlang 39.6%
Elixir 16.2%
Makefile 0.2%