From 35c220c50f1bd64d2e0cdece1ba162c69fd78d15 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 12 Sep 2011 10:07:44 -0400 Subject: [PATCH] google stuff --- .bin/r | 20 ++++++++++++++++++++ .gitconfig | 1 + .ssh/config | 16 ++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100755 .bin/r diff --git a/.bin/r b/.bin/r new file mode 100755 index 0000000..f973ff8 --- /dev/null +++ b/.bin/r @@ -0,0 +1,20 @@ +#!/bin/bash +g() { git "$@"; } +cmd=$1 +shift +acmd=$(git config --get "alias.${cmd}") + +case ${acmd} in +rebase) + if [[ $1 == "all" ]] ; then + for b in $(g b | awk '{print $NF}') ; do + echo " ### $b" + g co $b || exit 1 + r rb || exit 1 + done + exit 0 + fi + ;; +esac + +exec repo ${acmd:-${cmd}} "$@" diff --git a/.gitconfig b/.gitconfig index fab8910..982edd3 100644 --- a/.gitconfig +++ b/.gitconfig @@ -16,6 +16,7 @@ default = current [alias] a = add + ab = abandon b = branch bi = bisect ci = commit diff --git a/.ssh/config b/.ssh/config index 852457e..2b36aef 100644 --- a/.ssh/config +++ b/.ssh/config @@ -138,6 +138,22 @@ Host work-ports +### +### Google +### +Host gerrit.chromium.org + IdentityFile ~/.ssh/id_rsa.google +Host gerrit-int.chromium.org + IdentityFile ~/.ssh/id_rsa.google + +Host review.source.android.com + IdentityFile ~/.ssh/id_rsa.google + +Host git.overlays.gentoo.org + IdentityFile ~/.ssh/id_rsa.google + + + ### ### random source systems ### -- 2.39.5