From 5693ecd411ebe665c68d5fb73889f6a09352b418 Mon Sep 17 00:00:00 2001 From: port19 Date: Fri, 12 Jul 2024 13:28:15 +0200 Subject: [PATCH] add gitea support --- README.md | 1 + git-link.el | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ad819ef5..a9fb47ba 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ Name of the remote branch to link to. * [cgit](https://wiki.archlinux.org/title/Cgit) * [GitHub](http://github.com) * [GitLab](https://gitlab.com) +* [Gitea](https://about.gitea.com/) * [Gitorious](http://gitorious.org) * [GoogleSource](https://googlesource.com) * [Savannah](https://git.savannah.gnu.org/cgit) diff --git a/git-link.el b/git-link.el index 69276b54..d0089bd0 100644 --- a/git-link.el +++ b/git-link.el @@ -243,7 +243,8 @@ See its docs." ("googlesource.com" git-link-googlesource) ("visualstudio\\|azure" git-link-azure) ("sourcegraph" git-link-sourcegraph) - ("\\(amazonaws\\|amazon\\)\\.com" git-link-codecommit)) + ("\\(amazonaws\\|amazon\\)\\.com" git-link-codecommit) + (".*\\|git\\|.*" git-link-codeberg)) "Alist of host names and functions creating file links for those. Each element looks like (REGEXP FUNCTION) where REGEXP is used to match the remote's host name and FUNCTION is used to generate a link @@ -265,7 +266,8 @@ As an example, \"gitlab\" will match with both \"gitlab.com\" and ("googlesource.com" git-link-commit-googlesource) ("visualstudio\\|azure" git-link-commit-azure) ("sourcegraph" git-link-commit-sourcegraph) - ("\\(amazonaws\\|amazon\\)\\.com" git-link-commit-codecommit)) + ("\\(amazonaws\\|amazon\\)\\.com" git-link-commit-codecommit) + (".*\\|git\\|.*" git-link-commit-github)) "Alist of host names and functions creating commit links for those. Each element looks like (REGEXP FUNCTION) where REGEXP is used to match the remote's host name and FUNCTION is used to generate a link @@ -286,7 +288,8 @@ As an example, \"gitlab\" will match with both \"gitlab.com\" and ("googlesource.com" git-link-homepage-github) ("visualstudio\\|azure" git-link-homepage-github) ("sourcegraph" git-link-homepage-github) - ("\\(amazonaws\\|amazon\\)\\.com" git-link-homepage-codecommit)) + ("\\(amazonaws\\|amazon\\)\\.com" git-link-homepage-codecommit) + (".*\\|git\\|.*" git-link-homepage-github)) "Alist of host names and functions creating homepage links for those. Each element looks like (REGEXP FUNCTION) where REGEXP is used to match the remote's host name and FUNCTION is used to generate a link