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