]> git.wh0rd.org Git - home.git/commitdiff
update repo stuff
authorMike Frysinger <vapier@gentoo.org>
Tue, 12 Jun 2012 14:14:41 +0000 (10:14 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 12 Jun 2012 14:14:41 +0000 (10:14 -0400)
.bin/cros-repo
.bin/r

index 711b8d3c0677e977163c670acb905f7985df45ce..b048f6c6621ee91bd53f115bfe9cfbc3c0ed4b4d 100755 (executable)
@@ -40,7 +40,8 @@ while [[ $# -gt 0 ]] ; do
                shift
                ;;
        -r)
-               REF=$(realpath "$2")
+
+               REF=$(realpath "${2:-$(echo ~/chromiumos)}")
                shift
                ;;
        *)
diff --git a/.bin/r b/.bin/r
index d204eb1186964c89a57f577cc7c1a5dccc1ce76a..469b9689847a656f488b7b396f9efd762f5591ff 100755 (executable)
--- a/.bin/r
+++ b/.bin/r
@@ -20,7 +20,7 @@ rebase)
        if [[ $1 == "all" ]] ; then
                shift
                if [[ $# -eq 0 ]] ; then
-                       exec r forall -p -c 'r rb all .'
+                       exec r forall -p -c 'r rb all .' </dev/null
                fi
 
                branches=$(g b | awk '
@@ -110,6 +110,9 @@ g-push)
        fi
        exec g push cros-internal HEAD:refs/for/master
        ;;
+s)
+       exec r sync -j16
+       ;;
 upload)
        args=()
        while [[ $# -gt 0 ]] ; do