I'd really like to use Postgres as a backing store for libgit2 https://libgit2.github.com/
I wonder if there are any kind C programming wizards who know Postgres and might consider doing the open source port? It's beyond my Python programming skills and I dare not write crappy C code for fear of creating something nasty and insecure.
I can repay either by reciprocating with Python/web development/Linux/AWS knowledge, or if I have nothing of value to offer then I can offer thanks and praise.
The existing MySQL implementation is 460 lines of code.
There's a MySQL implementation here:
https://github.com/libgit2/libgit2-backends/blob/master/mysql/mysql.c
There's a sqlite implementation too:
https://github.com/libgit2/libgit2-backends/blob/master/sqlite/sqlite.c
Some relevant links:
http://blog.deveo.com/your-git-repository-in-a-database-pluggable-backends-in-libgit2/
Please note that I also don't know much C, but this implementation does work. Also included is a Postgres version of the Ref DB backend (so nothing hits the filesystem). There are a few bits that are not implemented since we didn't have use for the reflog and those parts are technically optional.
Would probably be good to get another set of eyes on this from someone much more familiar with C.
Hope this helps!