Codebase list rust-stfu8 / 96f26008-241c-44f7-97cf-b16432225604/main dev / filter-pending.sh
96f26008-241c-44f7-97cf-b16432225604/main

Tree @96f26008-241c-44f7-97cf-b16432225604/main (Download .tar.gz)

filter-pending.sh @96f26008-241c-44f7-97cf-b16432225604/main

041ee7a
 
 
 
 
 
 
 
 
 
 
 
 
#!/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