Skip to content

Instantly share code, notes, and snippets.

@Sloy
Created November 12, 2018 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sloy/d45b88101e0ffac0e6a6d89988988490 to your computer and use it in GitHub Desktop.
Save Sloy/d45b88101e0ffac0e6a6d89988988490 to your computer and use it in GitHub Desktop.
Most changed files in a git repo by number of commits
git log --name-status $* --after='2018-01-01 00:00:00' | \
grep -E '^[A-Z]\s+' | \
cut -c3-500 | \
sort | \
uniq -c | \
grep -vE '^ {6}1 ' | \
sort -n | \
grep -E '.+\.java?' | \
tail -n 20 | \
sort -n -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment