#!/bin/sh set -eu MSG_USAGE="$(cat <<-'EOF' Usage: git permalink [-phV] FILE [LINENO] EOF )" MSG_HELP="$(cat <<-'EOF' Options: -p only print the link, don't try to open it -h, --help show this help message -V, --version print the version number See "man git-permalink" for more information. EOF )" MSG_MISSING_FILE="$(echo <<-'EOF' Missing FILE argument. EOF )" MSG_UNSUPPORTED_ORIGIN="$(cat <<-'EOF' Unsupported origin: %s. Add a template override to use git-permalink (see "man git-permalink" for instructions). EOF )" MSG_OPEN="$(cat <<-'EOF' Opening %s EOF )" #