benthayer / git-gud

Wanna git gud? Then get git-gud, and git gud at git!
MIT License
401 stars 42 forks source link

Suggestion: Use preexisting Git web viewers to make remotes feel more authentic #337

Open sahansk2 opened 3 years ago

sahansk2 commented 3 years ago

I am not sure where to put this post, but I will put it here.

I have been looking for a long time for git web viewers that could integrate easily with Git Gud to best emulate the "GitHub" experience, while still being fully local. This would mean that it would have to be callable programmatically, and it shouldn't serve to be a full GitHub replacement (i.e. Pagure, Gogs, Gitea were off the table, since they need a full database on the backend). It would also ideally be in Python, since Python calls Python best, I think.

The best I've found is Klaus: https://github.com/jonashaag/klaus The interface is different from GitHub, but it close enough that I think that people could still benefit from practicing with it. I've tried to call it programmatically in my own personal experiments but there's something weird about the entrypoint that doesn't let me call it (I think it doesn't use __main__.py for its entrypoint, which messes up runpy, which is how I was calling it).

The license also seems very similar to MIT, with an exception for the logo. So there should not be any trouble in integrating it into this project if we have to roll our own distribution out.

Thoughts?