mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
delete-squashed-branches: Make branch checkout side effect clear
This commit is contained in:
parent
910242c92b
commit
fb1e5db6d7
|
|
@ -5,7 +5,7 @@ targetBranch=$1
|
|||
if [[ -z $targetBranch ]]; then
|
||||
targetBranch=$(git rev-parse --abbrev-ref HEAD)
|
||||
else
|
||||
git checkout -q $targetBranch
|
||||
git checkout $targetBranch
|
||||
fi
|
||||
|
||||
git for-each-ref refs/heads/ "--format=%(refname:short)" | while read branch; do
|
||||
|
|
|
|||
Loading…
Reference in a new issue