Changes in the git-delete-branch
This commit is contained in:
parent
85a98b8019
commit
c6c67a633d
@ -17,13 +17,8 @@ function list_of_the_branches() {
|
|||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function remove_branch() {
|
||||||
BRANCH="$1"
|
BRANCH="$1"
|
||||||
|
|
||||||
while true; do
|
|
||||||
[ -z "$BRANCH" ] && {
|
|
||||||
list_of_the_branches
|
|
||||||
read -p "Select branch to remove: " BRANCH
|
|
||||||
}
|
|
||||||
echo "$BRANCH"
|
echo "$BRANCH"
|
||||||
read -p "Remove locally / remote / both [L/R/B]: " CHOOSE
|
read -p "Remove locally / remote / both [L/R/B]: " CHOOSE
|
||||||
case $CHOOSE in
|
case $CHOOSE in
|
||||||
@ -42,4 +37,16 @@ while true; do
|
|||||||
;;
|
;;
|
||||||
*) echo "Please write good answer" ;;
|
*) echo "Please write good answer" ;;
|
||||||
esac
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
BRANCH="$1"
|
||||||
|
|
||||||
|
if [ -z "$BRANCH" ]; then
|
||||||
|
while true; do
|
||||||
|
list_of_the_branches
|
||||||
|
read -p "Select branch to remove: " BRANCH
|
||||||
|
remove_branch "$BRANCH"
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
remove_branch "$BRANCH"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user