Any interest in libgit bindings?

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Oct 9 15:46:28 PDT 2012


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?

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.

[1] https://github.com/jacob-carlborg/dstep/


More information about the Digitalmars-d mailing list