X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.bin%2Fgit-rb-all;h=1d9ded3d9d0786b9cd6060223b1a0de4d94fd3ce;hb=2ea871e750a0999351c3a9d3c43bf1bf62cf47f9;hp=122d85d2bffc2190445a9b0d21857632e99f1a46;hpb=c7a7c928eef699aca3b652b3002771d3f14a25e1;p=home.git diff --git a/.bin/git-rb-all b/.bin/git-rb-all index 122d85d..1d9ded3 100755 --- a/.bin/git-rb-all +++ b/.bin/git-rb-all @@ -1,59 +1,179 @@ -#!/bin/bash -# Helper to rewrite all local branches. - -rb_one() { - local b=$1 - shift - - 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 - 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 -} - -usage() { - cat <