Add script for checking for changes since publish

This commit is contained in:
Matt Swensen 2020-04-25 15:28:09 -06:00
parent b6dceed8c9
commit fef4843632
No known key found for this signature in database
GPG Key ID: 3F9E482BFC526F35

@ -0,0 +1,18 @@
#!/bin/zsh
set -euo pipefail
PACKAGES_DIR="$(realpath "$(dirname $0:A)/../packages")"
LIMIT=10
for PACKAGE in $PACKAGES_DIR/*; do
echo "Inspecting $PACKAGE..."
echo "Last $LIMIT commits in $PACKAGE:"
echo
git log --pretty=oneline --max-count=$LIMIT -- $PACKAGE
echo
read "COMMIT?Last published commit: "
echo "Files changed in $PACKAGE since $COMMIT:"
echo
git diff --stat $COMMIT HEAD -- $PACKAGE
echo
done