Codebase list rust-stfu8 / e6acfe10-c475-43e0-9797-5e1374397d69/main dev / filter-pending.sh
e6acfe10-c475-43e0-9797-5e1374397d69/main

Tree @e6acfe10-c475-43e0-9797-5e1374397d69/main (Download .tar.gz)

filter-pending.sh @e6acfe10-c475-43e0-9797-5e1374397d69/mainraw · history · blame

#!/bin/bash
# Filter list of crates by whether they're pending an upload by this team.
set -e

git fetch origin --prune
while read crate; do
	pkg="${crate//_/-}"
	if git show-ref --quiet --verify "refs/remotes/origin/pending-$pkg"; then
		echo "$crate 1"
	else
		echo "$crate 0"
	fi
done