diff options
-rwxr-xr-x | scripts/git-permalink.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/git-permalink.in b/scripts/git-permalink.in new file mode 100755 index 0000000..13231ec --- /dev/null +++ b/scripts/git-permalink.in @@ -0,0 +1,18 @@ +#!/bin/sh +set -eu + +usage() { + cat <<EOF + $0 FILE [REF] +EOF +} + +FILE="${1:-}" +if [ -z "$FILE" ]; then + printf 'Missing FILE argument.\n' + usage + exit 1 +fi + +# cgit, sourcehut, savannah, codeberg, notabug, pagure, bitbucket, gitlab, github +# Bitbucket Codeberg GitHub GitLab Pagure SourceHut |