From b5333d26be2119a12e10f58507a55e78e718de8c Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Wed, 14 Feb 2018 10:07:13 -0700 Subject: [PATCH] Don't both with trying to report the number of branches changed --- home/bin/git-cleanup | 6 ------ 1 file changed, 6 deletions(-) diff --git a/home/bin/git-cleanup b/home/bin/git-cleanup index 3353770..b07b971 100755 --- a/home/bin/git-cleanup +++ b/home/bin/git-cleanup @@ -3,15 +3,9 @@ git checkout master git pull -DELETED="0" git branch --merged master | grep -v master | while read BRANCH; do git branch -d $BRANCH - (( DELETED = DELETED + 1 )) done -if [[ "$DELETED" -eq "0" ]]; then - echo "No branches to clean up." -fi - echo "Branches remaining:" git branch