From: Mike Frysinger Date: Mon, 10 Jun 2013 17:49:22 +0000 (-0400) Subject: r: add `email` helper. have `sync` only do active branch by default. handle new... X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=35da3f7e4fb9309684ecde88f25d27f032c5cfcf;p=home.git r: add `email` helper. have `sync` only do active branch by default. handle new git about when using `rb`. --- diff --git a/.bin/r b/.bin/r index 71541f6..7d4fc61 100755 --- a/.bin/r +++ b/.bin/r @@ -94,6 +94,8 @@ rebase) { if ($0 ~ "^[*] *[(]no branch[)]") { next + } else if ($0 ~ "^[*] *[(]detached from ") { + next } else if ($1 == "*") { b = $2 } else { @@ -220,7 +222,7 @@ g-push) err "could not figure out remote to push to" ;; sync) - set -- -j16 "$@" + set -- -j16 -c "$@" ;; upload) args=() @@ -245,6 +247,11 @@ upload) done set -- "${args[@]}" ;; +email) + email=${1:-${USER}@chromium.org} + cmd='forall' + set -- -c "git cfg user.email ${email}" + ;; esac exec repo ${acmd:-${cmd}} "$@"