summaryrefslogtreecommitdiff
path: root/maint/changed_crates
blob: 5b1c4cb2054855e74561ac8b910ea582c1bf46a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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