Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 30 lines (26 sloc) 0.495 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/bin/bash
DIR=$(dirname $0)
cd "$DIR/build"

if [ -x ../branches-local ]; then
exec ../branches-local "$@"
fi

if [ "$1" = "-v" ]; then
VERBOSE=1
else
VERBOSE=
fi

git show-ref -d |
grep -v ' refs/heads/' |
grep -v '/HEAD$' |
sed -e 's, [^/]*/[^/]*/, ,' -e 's,\^{},,' |
tac |
while read commit branch; do
pb="$lb"
lb="$branch"
if [ -e ../out/ignore/$commit -o "$pb" = "$branch" ]; then
continue;
fi
[ -n "$VERBOSE" ] && echo -n "$commit "
echo "$branch"
done |
tac
Something went wrong with that request. Please try again.