]> git.eshelyaron.com Git - emacs.git/commit
Support forges by type rather than by host
authorTassilo Horn <tsdh@gnu.org>
Thu, 2 Sep 2021 20:07:16 +0000 (22:07 +0200)
committerTassilo Horn <tsdh@gnu.org>
Thu, 2 Sep 2021 20:07:16 +0000 (22:07 +0200)
commit0db50c3fd5580cfa077d81c484a29f2821ceb02d
tree3b82137f31e277caf9b5ade72feec0d6cbc88a83
parent6372a3f6e51c35b7b993a423d8ce7b06880f9004
Support forges by type rather than by host

Formerly, bug-reference-setup-from-vc-alist basically had one entry
per host (like gitlab.com).  Restructure so that it's easy to add new
hosts being just an instance of some type of forge such as SourceHut,
Gitea, or GitLab.

While we're at it, add support for gitea.com, salsa.debian.org, and
framagit.org, the latter two being GitLab instances.

* lisp/progmodes/bug-reference.el (bug-reference-gitea-instances)
(bug-reference-gitlab-instances,bug-reference-sourcehut-instances):
New variables listing online instances of those forges.
(bug-reference--setup-from-vc-alist): New function (and variable for
caching) using the former three new variables to generate suitable VC
auto-setup alist.
(bug-reference-try-setup-from-vc): Use both
bug-reference-setup-from-vc-alist and
bug-reference--setup-from-vc-alist.
lisp/progmodes/bug-reference.el