sshaw / git-link

Emacs package to get the GitHub/Bitbucket/GitLab/... URL for a buffer location
394 stars 73 forks source link

support 'Gitea' 's (and its fokr : Forgejo ?) server ? #117

Closed fenix011 closed 2 months ago

fenix011 commented 7 months ago

Hi I run my own git ( 'Gitea' server ) ... which is becoming a more and more popular 'self-hosted' option ! that would be great to enjoy git-link there too

thX thX thX

sshaw commented 7 months ago

Yes sounds good. What is the format of the URLs that must be generated?

port19x commented 2 months ago

It's very similar to github, but instead of blob it needs either src/branch or src/commit. This could be a default entry in the alist, since gitea is meant to be selfhosted and thus has all sorts of urls.

git-link-commit and git-link-homepage work as-is with the respective github backends

port19x commented 2 months ago

gitea works with codebergs git-link backend

sshaw commented 2 months ago

As discussed in #126 Gitea is supported in the same way we support cgit: user has to explicitly configure their self-hosted URL. No need to try to provide a default that acts as the default matching rule for the entire library due to its necessary loose syntax.

See the cgit and Gitea section in the README.