X-Git-Url: https://git.wh0rd.org/?p=home.git;a=blobdiff_plain;f=.bin%2Fgit-rb-all;h=d2c6737b95c1f9a3bb6ca4f784106654124e40a9;hp=b4efb482a1887f558fffdf1f5634be4d68a3f06b;hb=65a6ea8481d328dfa05a55d5c0b0adbbcbe76e35;hpb=fc774894456c8f9bd22c3863502aabc21975c8fe diff --git a/.bin/git-rb-all b/.bin/git-rb-all index b4efb48..d2c6737 100755 --- a/.bin/git-rb-all +++ b/.bin/git-rb-all @@ -1,41 +1,197 @@ -#!/bin/bash -# Helper to rewrite all local branches. - -rb_one() { - local b=$1 - - printf "### ${b}" - if ! git config --local "branch.${b}.merge" >/dev/null; then - echo " -> skipping due to missing merge branch" - else - echo - git checkout -q "${b}" || exit - if ! git rebase ; then - git rebase --abort - fi - fi -} - -usage() { - cat <