From: Mike Frysinger Date: Fri, 27 Sep 2019 17:50:31 +0000 (-0400) Subject: git-rb-all: add more features X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c7a7c928eef699aca3b652b3002771d3f14a25e1;p=home.git git-rb-all: add more features --- diff --git a/.bin/git-rb-all b/.bin/git-rb-all index ef3f54c..122d85d 100755 --- a/.bin/git-rb-all +++ b/.bin/git-rb-all @@ -3,14 +3,16 @@ rb_one() { local b=$1 + shift - printf "### ${b}" + printf "${BRACKET}### ${GREEN}${b}${NORMAL}" if ! git config --local "branch.${b}.merge" >/dev/null; then echo " -> skipping due to missing merge branch" else echo git checkout -q "${b}" || return - if ! git rebase ; then + git rebase "${opts[@]}" | sed -e '/^Fast-forwarded/d' -e "s:^:${BAD}:" -e "s:$:${NORMAL}:" + if [[ ${PIPESTATUS[0]} -ne 0 ]] ; then git rebase --abort fi fi @@ -18,25 +20,38 @@ rb_one() { usage() { cat <