brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [22/50] [abbrv] brooklyn-client git commit: rename big-to-small as git-biggest-files, also add git-follow-file.sh for convenience
Date Mon, 01 Feb 2016 18:01:20 GMT
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-*
-


Mime
View raw message