Home | History | Annotate | Download | only in tools

Lines Matching refs:branch

35 TEMP_BRANCH=$BRANCHNAME-temporary-branch-created-by-script
61 local MATCH=$(git branch | grep "$1" | awk '{print $NF}' | grep -x $1)
63 confirm "Branch $1 exists, do you want to delete it?"
65 git branch -D $1 || die "Deleting branch '$1' failed."
66 echo "Branch $1 deleted."
68 die "Can't continue. Please delete branch $1 and try again."
116 # Persist current branch.
123 # Get ahold of a safe temporary branch and check it out.
129 # Delete the branch that will be created later if it exists already.
136 [[ "$TEMP_BRANCH" != "$CURRENT_BRANCH" ]] && git branch -D $TEMP_BRANCH
137 [[ "$BRANCHNAME" != "$CURRENT_BRANCH" ]] && git branch -D $BRANCHNAME