Skip to content

Commit 5260cc7

Browse files
author
marty hiatt
committed
format Codeberg permalink correctly.
1 parent 096ef51 commit 5260cc7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

git-link.el

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -606,16 +606,16 @@ is prepended to it."
606606
(concat "https://" web-host))))
607607

608608
(defun git-link-codeberg (hostname dirname filename branch commit start end)
609-
(format "%s/%s/src/%s/%s"
610-
hostname
611-
dirname
612-
(or branch commit)
613-
(concat filename
614-
(when start
615-
(concat "#"
616-
(if end
617-
(format "L%s-L%s" start end)
618-
(format "L%s" start)))))))
609+
(format "%s/%s/src/%s/%s"
610+
hostname
611+
dirname
612+
(or branch (concat "commit/" commit))
613+
(concat filename
614+
(when start
615+
(concat "#"
616+
(if end
617+
(format "L%s-L%s" start end)
618+
(format "L%s" start)))))))
619619

620620
(defun git-link-gitlab (hostname dirname filename branch commit start end)
621621
(format "%s/%s/-/blob/%s/%s"

0 commit comments

Comments
 (0)