From b8c97623191bf0281250ee487863b3008df45bc8 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 28 May 2024 20:21:00 +0200 Subject: [PATCH] bash: Indentation --- .bash_functions | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.bash_functions b/.bash_functions index acf0de9..e51d73f 100644 --- a/.bash_functions +++ b/.bash_functions @@ -75,17 +75,13 @@ function gc { EOF ;; --new-branch | -b) - (git checkout --quiet -b "$2" && git push --set-upstream "$(git remote | head -n 1)" "$2" && echo '>>> Create new branch "'"$2"'"') || - (git checkout --quiet "$2" > /dev/null 2>&1 && echo '>>> Branch already exists, checking out... ') + (git checkout --quiet -b "$2" && git push --set-upstream "$(git remote | head -n 1)" "$2" && echo '>>> Create new branch "'"$2"'"') || (git checkout --quiet "$2" > /dev/null 2>&1 && echo '>>> Branch already exists, checking out... ') ;; *) if [ ! -z $1 ] ; then - (echo ">>> Try local checkout" && git checkout --quiet "$1" > /dev/null 2>&1) || - (echo ">>> Try remote checkout" && git checkout --quiet -b "$1" origin/"$1" > /dev/null 2>&1 || echo ">>> Unkown branch!") + (echo ">>> Try local checkout" && git checkout --quiet "$1" > /dev/null 2>&1) || (echo ">>> Try remote checkout" && git checkout --quiet -b "$1" origin/"$1" > /dev/null 2>&1 || echo ">>> Unkown branch!") else - (git checkout --quiet master > /dev/null 2>&1 && echo '>>> Try checking out master') || - (git checkout --quiet main > /dev/null 2>&1 && echo '>>> Try checking out main') || - (git checkout --quiet release > /dev/null 2>&1 && echo '>>> Try checking out release') + (git checkout --quiet master > /dev/null 2>&1 && echo '>>> Try checking out master') || (git checkout --quiet main > /dev/null 2>&1 && echo '>>> Try checking out main') || (git checkout --quiet release > /dev/null 2>&1 && echo '>>> Try checking out release') fi esac }