X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.bin%2Fgit-rb-all;h=be05ba65bb3de70c3c1565e7b10837570a12736f;hb=a5d268ae5f05367aafbd17704e28a6dc495433a4;hp=839d1432f68b4674fb757985464bfc4132b4a0d4;hpb=ba2e5f1f9dc0567d3df1abfbe6c3ae268ed7bc08;p=home.git diff --git a/.bin/git-rb-all b/.bin/git-rb-all index 839d143..be05ba6 100755 --- a/.bin/git-rb-all +++ b/.bin/git-rb-all @@ -3,32 +3,59 @@ rb_one() { local b=$1 + shift - echo "### ${b}" - git checkout -q "${b}" || exit - if ! git rebase ; then - git rebase --abort + 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 <