From: Mike Frysinger Date: Mon, 4 Jun 2012 17:49:09 +0000 (-0400) Subject: add more commands X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=17ff99a03c3487b471d9b519872e76602a61ee0b;p=home.git add more commands --- 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