scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
830 stars 90 forks source link

Enable custom backends via libgit2 #9

Closed scragg0x closed 9 years ago

scragg0x commented 10 years ago

Libgit2 supports different backends. See https://github.com/libgit2/libgit2-backends

This wiki uses dulwich which is a python git implementation, not libgit2 bindings like PyGit2. I can adapt the site to use either library I'm sure, but I don't believe either one support different backends besides filesystem and memory.

Solving this will enable this to become a 12-factor app, but I don't know how to do it.

loleg commented 9 years ago

Would love to help here, but don't really see what you're getting at. I feel your choice of Dulwich is an excellent one, making this wiki easier to deploy, providing an accessible API for feature dev, and allowing for debugging with compatible code.

There is a blog post (blog.deveo.com) talking about pluggable backends where they write "Using alternative Git storage solutions is probably most interesting for services or products that provide Git hosting". Is realms-wiki really hosting Git? I don't see how one file at a time multi-user access really needs the performance boost, but I could be wrong.

Could you list any specific benefits you think PyGit2 would bring to development, as opposed to just the architectural elegance of a consistent backend?