arti/maint/changed_crates

20 lines
318 B
Plaintext
Raw Normal View History

#!/bin/sh
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