X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fversion_control.sh;h=34d51f284443e4140cd859b231070cc40c61a5a0;hb=2dfef98831f239ef7448290fb7569a676f2a8907;hp=8e9ba78b7ac40b71fb5437cd433ebd4d20961af6;hpb=0065bf38d3d757f7d731ba9be7984ea7dab39384;p=feisty_meow.git diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index 8e9ba78b..34d51f28 100644 --- a/scripts/rev_control/version_control.sh +++ b/scripts/rev_control/version_control.sh @@ -284,7 +284,7 @@ function check_branch_state() return $to_return } -# showes the branch currently active in the repository. +# shows the branch currently active in the repository. function show_active_branch() { #hmmm: if no args, assume current dir!? @@ -295,13 +295,15 @@ function show_active_branch() #echo "calculated directory as '$directory'" fi - echo -n -e "$(basename $directory)\n\t=> branch " + echo -n -e "$(basename $directory) => branch " pushd "$directory" &>/dev/null #hmmm: if git... git rev-parse --abbrev-ref HEAD #hmmm: else OTHERS!!! + echo + popd &>/dev/null done } @@ -541,7 +543,7 @@ function perform_revctrl_action_on_file() fi did_anything=yes pushd "$dirname" &>/dev/null - echo "[$(pwd)]" + echo -n "[$(pwd)] " # pass the current directory plus the remaining parameters from function invocation. $action . exit_on_error "performing action $action on: $(pwd)"