aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/git-permalink.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/git-permalink.sh b/src/git-permalink.sh
index ce871ff..4a6b2ee 100755
--- a/src/git-permalink.sh
+++ b/src/git-permalink.sh
@@ -166,6 +166,10 @@ codeberg() {
printf '%s/src/commit/%s/%s%s\n' "$ORIGIN" "$COMMIT" "$FILE" "$(lineno_with_l)"
}
+pagure() {
+ printf '%s/blob/%s/f/%s%s\n' "$ORIGIN" "$COMMIT" "$FILE" "${MYLINENO:+#_$MYLINENO}"
+}
+
gitlab() {
normalize_origin
printf '%s/-/blob/%s/%s%s\n' "$ORIGIN" "$COMMIT" "$FILE" "${MYLINENO:+#L$MYLINENO}"
@@ -200,6 +204,9 @@ guess_permalink() {
*codeberg.org*)
codeberg
;;
+ *pagure.io*)
+ pagure
+ ;;
*gitlab.com*)
gitlab
;;