From fb1e5db6d7e32c39bb1576554eb0b092623ee515 Mon Sep 17 00:00:00 2001 From: Vladimir Jimenez Date: Mon, 24 May 2021 13:55:32 -0700 Subject: [PATCH] delete-squashed-branches: Make branch checkout side effect clear --- bin/git-delete-squashed-branches | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-delete-squashed-branches b/bin/git-delete-squashed-branches index e6a4fa8..6707da0 100755 --- a/bin/git-delete-squashed-branches +++ b/bin/git-delete-squashed-branches @@ -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