From 3c5704b0452c5db965c6991d2d3a0c5fd544a0c2 Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Wed, 25 Apr 2018 15:14:09 -0700 Subject: [PATCH] rm vendor --- .gitignore | 1 + test.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100755 test.sh diff --git a/.gitignore b/.gitignore index 53e2fed..d9a4482 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ stage *.snap *bfg-report* *bfg-report +vendor diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..9e04fd9 --- /dev/null +++ b/test.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# To use this on Mac you need to brew install coreutils and then replace cut with gcut and numfmt with gnumfmt + +git rev-list --objects --all \ +| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \ +| awk '/^blob/ {print substr($0,6)}' \ +| sort --numeric-sort --key=2 \ +| gcut --complement --characters=13-40 \ +| gnumfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest \ No newline at end of file