Skip to content

Commit

Permalink
Merge branch 'main' of github.com:AlgoCompSynth/CLAMS
Browse files Browse the repository at this point in the history
  • Loading branch information
znmeb committed Oct 16, 2024
2 parents 61c0622 + c95c432 commit 2637d12
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions size.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /usr/bin/env bash

set -e

# https://stackoverflow.com/questions/9456550/how-can-i-find-the-n-largest-files-in-a-git-repository
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| sed -n 's/^blob //p' \
| sort --numeric-sort --key=2 \
| tail -n 10 \
| cut -c 1-12,41- \
| $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest

0 comments on commit 2637d12

Please sign in to comment.