arti/maint/changed_crates

22 lines
343 B
Plaintext
Raw Normal View History

#!/bin/bash
set -euo pipefail
TOP=$(dirname "$0")/..
TAG="${1:-}"
if [ -z "$TAG" ]; then
echo "You need to give a git revision as an argument."
exit 1
fi
for crate in $(cd "${TOP}/crates/" && ls); do
if git diff --quiet "$TAG..HEAD" "${TOP}/crates/${crate}"; then
# echo "$crate: ...:"
:
else
echo "$crate"
fi
done