Skip to content

Instantly share code, notes, and snippets.

View asheplyakov's full-sized avatar

Alexey Sheplyakov asheplyakov

  • BaseALT
  • Saratov
View GitHub Profile
#!/bin/sh
set -e
get_all_objects () {
git rev-list --all --objects | git cat-file --batch-check='%(objectname) %(objecttype) %(objectsize) %(rest)'
}
get_all_objects | awk '
BEGIN {
size_limit = 10*1024*1024;
}
$2 == "blob" {