Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions browse-at-remote.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
(const :tag "GitLab" "gitlab")
(const :tag "Bitbucket" "bitbucket")
(const :tag "Stash/Bitbucket Server" "stash")
(const :tag "git.savannah.gnu.org" "gnu")
(const :tag "cgit" "gnu")
(const :tag "Azure DevOps" "ado")
(const :tag "Phabricator" "phabricator")
(const :tag "gist.github.com" "gist")
Expand All @@ -66,7 +66,8 @@
'((:host "^github\\.com$" :type "github")
(:host "^bitbucket\\.org$" :type "bitbucket")
(:host "^gitlab\\.com$" :type "gitlab")
(:host "^git\\.savannah\\.gnu\\.org$" :type "gnu")
(:host "^git\\.savannah\\.gnu\\.org$" :type "gnu" :actual-host "git.savannah.gnu.org/cgit")
(:host "^git\\.kernel\\.org$" :type "gnu")
(:host "^gist\\.github\\.com$" :type "gist")
(:host "^git\\.sr\\.ht$" :type "sourcehut")
(:host "^.*\\.visualstudio\\.com$" :type "ado")
Expand Down Expand Up @@ -283,7 +284,7 @@ related remote in `browse-at-remote-remote-type-regexps'."
(domain (butlast parts))
(project (car (last parts))))
(string-join
(append domain (list "cgit" project)) "/")))
(append domain (list project)) "/")))

(defun browse-at-remote--format-region-url-as-gnu (repo-url location filename &optional linestart lineend)
"URL formatter for gnu."
Expand Down
2 changes: 1 addition & 1 deletion readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Two solution available:
- gitlab.com
- github.com
- Stash
- git.savannah.gnu.org
- Cgit
- gist.github.com
- Phabricator
- git.sr.ht
Expand Down