From 5757974ee8b01620b986c17ae868f120c138cd6b Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 7 Sep 2022 15:42:52 -0400 Subject: [PATCH] trying out cleaner look for branchy --- scripts/rev_control/version_control.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index 119f0dcf..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)\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)" -- 2.34.1