summaryrefslogtreecommitdiff
path: root/maint/changed_crates
blob: 1ef1a48049064e2ed75f2f96b406a46a373d3bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env 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 $("${TOP}/maint/list_crates"); do
    if git diff --quiet "$TAG..HEAD" "${TOP}/crates/${crate}"; then
	# echo "$crate: ...:"
	:
    else
	echo "$crate"
    fi
done