Skip to content

Commit fad332c

Browse files
committed
Add git-fat-objects
1 parent 0731851 commit fad332c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

git-fat-objects

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
git rev-list --all --objects | \
3+
sed -n $(git rev-list --objects --all | \
4+
cut -f1 -d' ' | \
5+
git cat-file --batch-check | \
6+
grep blob | \
7+
sort -n -k 3 | \
8+
tail -n40 | \
9+
while read hash type size; do
10+
echo -n "-e s/$hash/$size/p ";
11+
done) | \
12+
sort -n -k1

0 commit comments

Comments
 (0)