https://github.com/ethomson/jagged
java bindings to libgit2
https://github.com/ethomson/jagged
Last synced: about 1 year ago
JSON representation
java bindings to libgit2
- Host: GitHub
- URL: https://github.com/ethomson/jagged
- Owner: ethomson
- License: mit
- Created: 2013-05-11T11:56:34.000Z (about 13 years ago)
- Default Branch: main
- Last Pushed: 2020-12-13T13:49:02.000Z (over 5 years ago)
- Last Synced: 2025-03-28T01:50:49.116Z (about 1 year ago)
- Language: Java
- Size: 1.37 MB
- Stars: 113
- Watchers: 10
- Forks: 28
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jagged
[](https://github.com/ethomson/jagged/actions?query=event%3Apush+branch%3Amain+workflow%3ACI)
jagged provides Java language bindings to [libgit2][0], a native Git
implementation.
See the javadoc at [http://ethomson.github.io/jagged][1].
[0]: https://github.com/libgit2/libgit2
[1]: 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][2].
[2]: http://www.eclipse.org/jgit/
## How do I work with this?
Apologies to Maven lovers, this setup is abysmal at the moment.
1. Get the included libgit2 submodule:
git submodule init
git submodule update
2. Build the natives (libgit2 and libjagged) for your platform, and copy
them into the `native` directory:
make
make install
3. Now you can build the Java:
mvn install
## Using Eclipse
Quick start guide for those unfamiliar with Maven and Eclipse:
1. 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
2. Open Eclipse, selecting the Eclipse workspace configured in step 1.
3. 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][3] file).
[3]: https://github.com/ethomson/jagged/blob/master/LICENSE