aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/git-permalink.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/git-permalink.sh b/src/git-permalink.sh
index f2da926..ce871ff 100755
--- a/src/git-permalink.sh
+++ b/src/git-permalink.sh
@@ -161,6 +161,11 @@ notabug() {
printf '%s/src/%s/%s%s\n' "$ORIGIN" "$COMMIT" "$FILE" "$(lineno_with_l)"
}
+codeberg() {
+ normalize_origin
+ printf '%s/src/commit/%s/%s%s\n' "$ORIGIN" "$COMMIT" "$FILE" "$(lineno_with_l)"
+}
+
gitlab() {
normalize_origin
printf '%s/-/blob/%s/%s%s\n' "$ORIGIN" "$COMMIT" "$FILE" "${MYLINENO:+#L$MYLINENO}"
@@ -192,6 +197,9 @@ guess_permalink() {
*notabug.org*)
notabug
;;
+ *codeberg.org*)
+ codeberg
+ ;;
*gitlab.com*)
gitlab
;;