rebase)
if [[ $1 == "all" ]] ; then
shift
+ if [[ $# -eq 0 ]] ; then
+ exec r forall -c 'r rb all .'
+ fi
+
branches=$(g b | awk '
{
if ($0 ~ "^[*] *[(]no branch[)]") {
}
}
END { print list b }')
+ [[ -z ${branches} ]] && exit 0
+
+ eval $(bash-colors --env)
+ echo "${GOOD}### ${PWD}${NORMAL}"
for b in ${branches} ; do
- echo " ### $b"
+ echo " ${HILITE}### $b${NORMAL}"
g co $b || exit 1
- r rb "$@" || exit 1
+ if ! r rb "$@" ; then
+ g rb-a
+ fi
done
exit 0
fi