Created
April 14, 2012 21:13
-
-
Save vinniefalco/2387905 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --mirror git://github.com/vinniefalco/DSPFilters.git DSPOrig | |
rm -rf DSPFilters DSP1 | |
git clone --no-hardlinks DSPOrig DSP1 | |
cd DSP1 | |
git filter-branch --prune-empty --index-filter 'git rm -rfq --cached --ignore-unmatch shared/DSPFIltersDemo/BUilds/MacOSInstaller/InstallerTemplate.sparseimage' HEAD | |
git gc --aggressive | |
cd .. | |
git clone --no-hardlinks DSP1 DSPFilters | |
cd DSPFilters | |
# displays the largest objects in the repo | |
if [ -d .git ]; then | |
git verify-pack -v .git/objects/pack/pack-*.idx \ | |
| grep blob | sort -k3nr | head -n 50 \ | |
| while read s x b x; do git rev-list --all --objects \ | |
| grep $s | awk '{print "'"$b"'",$0;}'; done | |
else | |
git verify-pack -v objects/pack/pack-*.idx \ | |
| grep blob | sort -k3nr | head -n 50 \ | |
| while read s x b x; do git rev-list --all --objects \ | |
| grep $s | awk '{print "'"$b"'",$0;}'; done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment