get files traked by git based on size

C++
git ls-tree -r -t -l --full-name HEAD | sort -n -k 4 | tail -n 10

Source

Also in C++: