GmGitView: Git Repository Viewer for Gemini
I made a Git repository viewer for Gemini. It's written in Python and requires a recent version of pyOpenSSL.
The motivation was that occasionally I've needed to link from my capsule to files in my Git repositories, and that has required HTTPS links.
Features
- View commits, history, tags, and file content
- Repository README is shown on the main page
- Commit lists and tags are in Gemini subscription format
- User can select the viewed branch
- View commits as email-formatted patches or colored diffs
- File tree viewer
- Markdown files converted to Gemtext for viewing
- All pages are cached for better performance
Future plans
This was written rather quickly in a couple of days, so there's probably some bugs to fix and features that would be nice to have. One thing that might be interesting is making the pages configurable with templates, so one could use this as a server to host their capsule directly from a Git repository.
📅 2021-12-22
CC-BY-SA 4.0