+ local opts=(-q)
+ while [[ $# -ne 0 ]] ; do
+ case $1 in
+ -q|-v|-n|--no-stat|--stat) opts+=( "$1" );;
+ *) usage ;;
+ esac
+ shift
+ done
+
+ [[ -z ${GOOD} ]] && eval "$(bash-colors --env)"
+
+ # Switch to the top dir in case the working dir doesn't exist in every branch.
+ cd "$(git rev-parse --show-toplevel)" || return
+
+ # Skip if rebase is in progress.
+ if [[ -e $(git rev-parse --git-path rebase-merge) || \
+ -e $(git rev-parse --git-path rebase-apply) ]] ; then
+ printf "${BAD}skipping due to active rebase${NORMAL}\n"
+ exit 1