git

for i in (git ls-files .); echo (git log --oneline $i| wc -l) $i; end > foo.txt