]> git.wh0rd.org Git - home.git/commitdiff
add more commands
authorMike Frysinger <vapier@gentoo.org>
Mon, 4 Jun 2012 17:49:09 +0000 (13:49 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 4 Jun 2012 17:49:09 +0000 (13:49 -0400)
.bin/r

diff --git a/.bin/r b/.bin/r
index d96159412833c0da51ff4ac3e111484f24cda0e7..6771348c705bcf90d1fb944f63b467d7282dbe02 100755 (executable)
--- 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 <branch>"
+               exit 1
+       fi
+       exec g push cros-internal HEAD:refs/for/master
+       ;;
 upload)
        args=()
        while [[ $# -gt 0 ]] ; do