sshaw / git-link

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

Adding handler for codeberg.org #88

Closed jeremyf closed 3 years ago

jeremyf commented 3 years ago

codeberg.org uses the 'src' slug instead of 'blob' like Github. This commit helps produce the correct URL for Codeberg.

sshaw commented 3 years ago

Hi, thanks for the PR. Never heard of code Codeberg but I just signed up! What's the story behind it?

That aside, since it looks like the commit and link functions are the same as GitHub, can we use its functions instead? E.g.

 ("codeberg.org" git-link-github)

?

Oopise. I looked at the code before the comment. I see you say there is a difference!