From 17ff99a03c3487b471d9b519872e76602a61ee0b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 4 Jun 2012 13:49:09 -0400 Subject: [PATCH] add more commands --- .bin/r | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.bin/r b/.bin/r index d961594..6771348 100755 --- a/.bin/r +++ b/.bin/r @@ -4,6 +4,10 @@ err() { printf '%b\n' "$*" 1>&2; exit 1; } case $1 in ""|-*) ;; +l) + cmd=list + shift + ;; *) cmd=$1 shift @@ -36,7 +40,7 @@ rebase) 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 @@ -88,6 +92,15 @@ sb-push) 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 " + exit 1 + fi + exec g push cros-internal HEAD:refs/for/master + ;; upload) args=() while [[ $# -gt 0 ]] ; do -- 2.39.2