jagged
jagged provides Java language bindings to libgit2, a native Git implementation.
See the javadoc at http://ethomson.github.io/jagged.
What is this madness?
This is very experimental, very mediocre JNI bindings for libgit2. Almost nothing is bound, short of ensuring that this crazy idea might work. It turns out that it might.
You probably actually want to be using jgit.
How do I work with this?
Apologies to Maven lovers, this setup is abysmal at the moment.
-
Get the included libgit2 submodule:
git submodule init git submodule update
-
Build the natives (libgit2 and libjagged) for your platform, and copy them into the
native
directory:make make install
-
Now you can build the Java:
mvn install
Using Eclipse
Quick start guide for those unfamiliar with Maven and Eclipse:
-
Determine the location of your Eclipse Workspace (this cannot be inside or beneath the jagged folder.) Then configure the workspace directory for Maven and set up the Eclipse project files:
mvn -Declipse.workspace=..\jagged-eclipse eclipse:configure-workspace mvn eclipse:eclipse
-
Open Eclipse, selecting the Eclipse workspace configured in step 1.
-
Select File > Import > General > Existing Projects into Workspace. In the "Select Root Directory" prompt, browse to the location of your jagged source.
License
Available under the MIT license (refer to the LICENSE file).