Any interest in libgit bindings?

Jacob Carlborg doob at me.com
Wed Oct 10 05:33:23 PDT 2012


On 2012-10-10 00:46, Andrej Mitrovic wrote:
> http://libgit2.github.com/
>
> libgit has things like clone/commit/tag, reading/writing git loose
> object files. You can easily deflate object files using std.zlib, but
> unfortunately there's no git pack file unpacker in libgit (you can
> externally use git's unpack-objects command for that).
>
> I don't know whether dstep[1] can autogenerate the bindings (haven't
> tried it myself), any luck there from anyone?

If there aren't too many macros or bitfields it shouldn't be any 
problem. But the more people use it the better it can be.

> My dgen generator (unreleased) can generate bindings but it's a
> C++-based generator so the generated files aren't pure 1to1 bindings
> since forwarding functions were automatically generated (this is an
> implementation detail of the generator that can and will be fixed).
>
> win32-based bindings are here, along with somewhat ported samples (a
> little hardcoded but things generally work):
> https://github.com/AndrejMitrovic/dgen_libgit
>
> But if there's any interest I could clean it up and make it a nice
> simple C wrapper just like the other deimos projects
> (https://github.com/D-Programming-Deimos). If Dstep can do it
> automatically even better, but I didn't get to use it yet.

I would absolutely have interest in this.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list