You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2016/02/01 19:01:20 UTC

[22/50] [abbrv] brooklyn-client git commit: rename big-to-small as git-biggest-files, also add git-follow-file.sh for convenience

http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/ba85cc55/big-to-small.sh
----------------------------------------------------------------------
diff --git a/big-to-small.sh b/big-to-small.sh
deleted file mode 100755
index b7b109c..0000000
--- a/big-to-small.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-
-# lists files in history in size order, in big-to-small.gen.txt
-# capped at 200 of the biggest blobs (generating about 3000 of the biggest size files in history)
-
-# however this does not show the former names of the blobs so if the same file is in multiple times this script will not currently show you all instances!
-
-pushd incubator-brooklyn
-git rev-list --objects --all | sort -k 2 > ../TMP-allfileshas.txt
-git gc && git verify-pack -v .git/objects/pack/pack-*.idx | egrep "^\w+ blob\W+[0-9]+ [0-9]+ [0-9]+$" | sort -k 3 -n -r | head -200 > ../TMP-bigobjects.txt
-for SHA in `cut -f 1 -d\  < ../TMP-bigobjects.txt`; do echo $(grep $SHA ../TMP-bigobjects.txt) $(grep $SHA ../TMP-allfileshas.txt) | awk '{print $1,$3,$7}' >> ../big-to-small.gen.txt; done;
-popd
-
-rm TMP-*
-