handling no parms better
[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 FULL_LIST="$@"
14
15 # use the current directory if no paths were provided.
16 if [ -z "$FULL_LIST" ]; then
17   FULL_LIST="."
18 fi
19
20 show_active_branch $FULL_LIST
21 exit_on_error "showing branches: $FULL_LIST"
22
23 ##############
24
25 restore_terminal_title
26