X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fbranchy.sh;fp=scripts%2Frev_control%2Fbranchy.sh;h=a92d31683fbb75b7a3e6e64a4795da1d9f3c534c;hb=353cffdc8318756f44b3d44064bf8b28d6905503;hp=0000000000000000000000000000000000000000;hpb=2f10609a685f0512cee89890d2e365a8f10c8054;p=feisty_meow.git diff --git a/scripts/rev_control/branchy.sh b/scripts/rev_control/branchy.sh new file mode 100644 index 00000000..a92d3168 --- /dev/null +++ b/scripts/rev_control/branchy.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# branchy: lists the branches active on all of the folders present in the +# REPOSITORY_LIST variable or in paths provided on the command line. + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" +source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh" + +save_terminal_title + +############## + +echo "showing repository branches at: $(date)" + +FULL_LIST="$@" + +# only add the standard feisty meow repo list items if we were given no args on command line. +#hmmm: below seems to be oddly just major locations; is the repo list all relative names? +if [ -z "$FULL_LIST" ]; then + FULL_LIST=" $(dirname $FEISTY_MEOW_APEX) $HOME " + if [ "$OS" == "Windows_NT" ]; then + FULL_LIST+=" c:/ d:/ e:/ " + fi +fi + +show_active_branch $FULL_LIST +exit_on_error "showing branches: $FULL_LIST" + +echo + +############## + +restore_terminal_title