ldct / libgit2.js

libgit2 compiled to js
Other
13 stars 2 forks source link

libgit2.js - real git in your browser

Welcome to libgit2.js!

screenshot

libgit2.js is a port of the libgit2 library (http://libgit2.github.com) to javascript.

I used the emscripten C-to-javascript compiler to compile libgit to javascript.

Dependencies

Much thanks to the following projects

Features

Here are the features currently supported by libgit2.js. Help us make it better!

I'd particularly like to know if there's a js library that would be suited for parsing the git commands.

Building

libgit.js is built using a custom CMakeLists.txt file that replaces gcc and related tools with the drop-in replacements provided by emscripten. Check out the interact.js file for the commands to use it.

Before building, replace this line

set(EMSCRIPTEN_ROOT_PATH "/home/xuanji/tools/emscripten")

in CMakeLists.txt with the path to your emscripten. Also make sure your emscripten supports compressing downloads (https://github.com/kripken/emscripten/wiki/Compressing-Downloads)