1 2 3 4 5 6 7 8 9 10 11 12 13 |
#!/bin/bash REPO=$1 shift PRIORITIES=$@ cd $REPO git fetch -p -q 2>&1>/dev/null RECENT=$(git for-each-ref \ --format='gitbranch:%(refname:short):github.com/juju/juju' \ --sort -committerdate --count 11 refs/remotes/origin/ | \ sed -e '/HEAD/d; s,origin/,,' | tac | tr -s '\n' ' ') echo "$PRIORITIES $RECENT" |