tweaks to output formatting
[feisty_meow.git] / scripts / rev_control / branchy.sh
1 #!/bin/bash
2
3 # branchy: lists the branches active on all of the folders present in the
4 # REPOSITORY_LIST variable or in paths provided on the command line.
5
6 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
7 source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
8
9 save_terminal_title
10
11 ##############
12
13 ###echo "showing repository branches at: $(date)"
14
15 FULL_LIST="$@"
16
17 # only add the standard feisty meow repo list items if we were given no args on command line.
18 #hmmm: below seems to be oddly just major locations; is the repo list all relative names?
19 if [ -z "$FULL_LIST" ]; then
20   FULL_LIST=" $(dirname $FEISTY_MEOW_APEX) $HOME "
21   if [ "$OS" == "Windows_NT" ]; then
22     FULL_LIST+=" c:/ d:/ e:/ "
23   fi
24 fi
25
26 show_active_branch $FULL_LIST
27 exit_on_error "showing branches: $FULL_LIST"
28
29 ##############
30
31 restore_terminal_title