Any interest in libgit bindings?
Justin Whear
justin at economicmodeling.com
Wed Oct 10 09:05:35 PDT 2012
On Wed, 10 Oct 2012 00:46:28 +0200, 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?
>
> 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/
I'd be interested. I hand-wrote bindings to most of libgit2 (though not
the latest version), but I skipped most of the write-oriented stuff, so a
complete binding would be welcome.
More information about the Digitalmars-d
mailing list