Skip to content

Commit 2130d52

Browse files
committed
Move copyright to script header
1 parent 0f9a743 commit 2130d52

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

git-pruneall

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
# Usage: git-pruneall [<remote>...]
33
# Prune branches from specified remotes, or all remotes when
44
# <remote> not specified.
5-
6-
REMOTES="$@"
7-
8-
test -z "$REMOTES" &&
9-
REMOTES=$(git remote)
10-
11-
for remote in $REMOTES
12-
do
13-
echo "pruning: $remote"
14-
git remote prune "$remote" || true
15-
done
16-
175
# Copyright (c) 2009 Ryan Tomayko <tomayko.com/about>
186
#
197
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -32,4 +20,15 @@ done
3220
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3321
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
3422
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
35-
# IN THE SOFTWARE.
23+
# IN THE SOFTWARE.
24+
25+
REMOTES="$@"
26+
27+
test -z "$REMOTES" &&
28+
REMOTES=$(git remote)
29+
30+
for remote in $REMOTES
31+
do
32+
echo "pruning: $remote"
33+
git remote prune "$remote" || true
34+
done

0 commit comments

Comments
 (0)