Lindenii Project Forge
Login

hare-libgit2

Hare bindings for libgit2 (BROKEN)
Commit info
ID
653a7c010d4b73d71f01cb4380805df9cdbf7ead
Author
Runxi Yu <me@runxiyu.org>
Author date
Fri, 14 Mar 2025 02:10:34 +0800
Committer
Runxi Yu <me@runxiyu.org>
Committer date
Fri, 14 Mar 2025 02:10:34 +0800
Actions
Change repo URL
# Hare bindings for libgit2

This is a set of bindings for [libgit2](https://libgit2.org/).

Most symbols correspond to the libgit2 API directly with the `git_`/`GIT_`
prefix removed. Where possible, string parameters are accepted as `str` and are
converted to NUL-terminated strings automatically.

## Building and linking

Remember to pass `-lgit2` to `hare build`, or otherwise link against `libgit2`.

## Vendoring 

```
git subtree -P vendor/hare-libgit2/ add ssh://forge.runxiyu.org/hare/:/repos/hare-libgit2/ master
```

## Contributing

Create a branch that begins with `contrib/` and push to the
[main repo](https://forge.runxiyu.org/hare/:/repos/hare-libgit2/)
[main repo](https://forge.lindenii.runxiyu.org/hare/:/repos/hare-libgit2/)
via SSH directly.

```
git clone ssh://forge.runxiyu.org/hare/:/repos/hare-libgit2/
git clone ssh://forge.lindenii.runxiyu.org/hare/:/repos/hare-libgit2/
cd hare-libgit2
git checkout -b contrib/whatever
# edit and commit stuff
git push -u origin HEAD
```

## License

GNU GPL version 2, with an linking exception. See the `COPYING` file for details.