afshinm / node-gitteh

Node.js bindings for libgit2

Home Page:http://libgit2.github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gitteh v0.17.2

build status

Gitteh needs a new daddy (or mommy): See Issue #68.

Installation

Gitteh requires node 0.8, CMake 2.6 and gcc. Installation via NPM:

npm install gitteh

What?

Node bindings to the excellent libgit2 C library. Right now, the bindings cover read only access to raw objects (trees/commits/blobs/tags/references), and basic access to remotes (including basic cloning/fetching support).

Gitteh aims to:

  • Be simple and convenient
  • Be as performant as possible - avoids calling into underlying C library as much as possible.
  • Be safe for use in Node's threadpool (read: shouldn't segfault your app)

Why?

There's a few libraries out there that wrap git cli commands, parsing the output and such. This is a perfectly acceptable solution. Node-gitteh provides first-class support to work with a git repository on a low level, and does not require git.git (and its myriad of dependencies) to be installed in the server environment.

The documentation is currently outdated. We're working on a new version currently for the new 0.17.x version of gitteh. The Old pre-0.17.x documentation can be found here. Instead, you should visit examples dir in the repo to see examples of 0.17.x usage.

License

Gitteh is available under the MIT License. See the LICENSE file for more information.

Contributing

Contributions are very welcome. Please feel free to fork this project and hack on it. Go ahead and check out the issues tab to see what needs to be done! Go on! Do it!

Building

In order to build Gitteh, you first need to install coffee-script. Coffee-script is not needed to use the library, only to work with the source.

npm install -g coffee-script

Next, you need to install gitteh's dependencies. In gitteh's root directory, run:

npm install

Lastly, you need to compile and build gitteh

cake build

It should generate lib/gitteh.js for you to use. Happy hacking!

About

Node.js bindings for libgit2

http://libgit2.github.com

License:MIT License