Skip to content

Commit f0f7b9c

Browse files
committed
Add author information to script header
1 parent eced436 commit f0f7b9c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

git-prune-branches

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#
1010
# Then it prunes all branches that no longer exist at each upstream
1111
# remote.
12+
#
13+
# Author: Michael Demmer https://github.com/demmer
14+
# License: MIT
15+
# Original source: https://github.com/jut-io/git-scripts/blob/master/bin/git-prune-branches
1216

1317
merged=`git branch --no-color --merged master | grep -v master | sed 's/\*/ /'`
1418

@@ -38,12 +42,12 @@ if [ ! -z "$merged" ] ; then
3842
fi
3943
done
4044
fi
41-
45+
4246
remotes=`git remote`
4347
for remote in $remotes ; do
4448
prompt=n
4549
read -p "Prune deleted branches from remote '$remote' (y=yes n=no)? " prompt
4650
if [ "$prompt" = 'y' ] ; then
4751
git remote prune $remote
4852
fi
49-
done
53+
done

0 commit comments

Comments
 (0)