case $1 in
""|-*) ;;
+l)
+ cmd=list
+ shift
+ ;;
*)
cmd=$1
shift
echo "${GOOD}### ${PWD}${NORMAL}"
for b in ${branches} ; do
echo " ${HILITE}### $b${NORMAL}"
- g co $b || exit 1
+ g co -q $b || exit 1
if ! r rb "$@" ; then
g rb-a
fi
exit 0
;;
+g-push)
+ # For the times when repo is being stupid, push directly to gerrit myself.
+ shift
+ if [[ $# -ne 1 ]] ; then
+ echo "Usage: r g-push <branch>"
+ exit 1
+ fi
+ exec g push cros-internal HEAD:refs/for/master
+ ;;
upload)
args=()
while [[ $# -gt 0 ]] ; do