X-Git-Url: https://git.wh0rd.org/?p=home.git;a=blobdiff_plain;f=.bin%2Fgit-rb-all;h=d2c6737b95c1f9a3bb6ca4f784106654124e40a9;hp=122d85d2bffc2190445a9b0d21857632e99f1a46;hb=65a6ea8481d328dfa05a55d5c0b0adbbcbe76e35;hpb=c7a7c928eef699aca3b652b3002771d3f14a25e1 diff --git a/.bin/git-rb-all b/.bin/git-rb-all index 122d85d..d2c6737 100755 --- a/.bin/git-rb-all +++ b/.bin/git-rb-all @@ -1,59 +1,197 @@ -#!/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 <