git_revision_script 260 B

1234567
  1. git rev-list --objects --all \
  2. | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
  3. | sed -n 's/^blob //p' \
  4. | sort --numeric-sort --key=2 \
  5. | cut -c 1-12,41- \
  6. | numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest