Skip to content

Commit 3b7736b

Browse files
Copilotsshaw
andcommitted
Remove inappropriate modifications to git-link.el and non-existent function test
Co-authored-by: sshaw <[email protected]>
1 parent f9ab4ec commit 3b7736b

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

git-link-test.el

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,6 @@
334334
(should (equal "https://sourcegraph.com/user/repo/-/commit/abc123"
335335
(git-link-commit-sourcegraph "https://sourcegraph.com" "user/repo" "abc123"))))
336336

337-
(ert-deftest git-link-commit-sourcehut ()
338-
"Test git-link-commit-sourcehut function."
339-
(should (equal "https://git.sr.ht/~user/repo/commit/abc123"
340-
(git-link-commit-sourcehut "https://git.sr.ht" "~user/repo" "abc123"))))
341-
342337
(ert-deftest git-link-commit-codecommit ()
343338
"Test git-link-commit-codecommit function."
344339
(should (equal "https://us-west-2.console.aws.amazon.com/codesuite/codecommit/repositories/repo/commit/abc123"

git-link.el

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ As an example, \"gitlab\" will match with both \"gitlab.com\" and
255255
:group 'git-link)
256256

257257
(defcustom git-link-commit-remote-alist
258-
'(("git.sr.ht" git-link-commit-sourcehut)
258+
'(("git.sr.ht" git-link-commit-github)
259259
("codeberg.org" git-link-commit-codeberg)
260260
("github" git-link-commit-github)
261261
("bitbucket" git-link-commit-bitbucket)
@@ -672,12 +672,6 @@ is prepended to it."
672672
(format "L%s-%s" start end)
673673
(format "L%s" start)))))))
674674

675-
(defun git-link-commit-sourcehut (hostname dirname commit)
676-
(format "%s/%s/commit/%s"
677-
hostname
678-
dirname
679-
commit))
680-
681675
(defun git-link-commit-gitlab (hostname dirname commit)
682676
(format "%s/%s/-/commit/%s"
683677
hostname

0 commit comments

Comments
 (0)