Files
zapdb/changes.sh
T
2025-12-10 22:11:18 +00:00

19 lines
374 B
Bash
Executable File

#!/bin/bash
set -e
GHORG=${GHORG:-dgraph-io}
GHREPO=${GHREPO:-badger}
cat <<EOF
This description was generated using this script:
\`\`\`sh
$(cat "$0")
\`\`\`
Invoked as:
$(echo GHORG="${GHORG}" GHREPO="${GHREPO}" $(basename "$0") ${@:1})
EOF
git log --oneline --reverse ${@:1} |
sed -E "s/^(\S{7}\s)//g" |
sed -E "s/([\s|\(| ])#([0-9]+)/\1${GHORG}\/${GHREPO}#\2/g"