Home | History | Annotate | Download | only in tools

Lines Matching refs:branch

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