Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexey Sheplyakov asheplyakov

  • BaseALT
  • Saratov
View GitHub Profile
View gitrepostats
#!/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" {