Created
October 4, 2012 10:19
-
-
Save michaelfeathers/3832740 to your computer and use it in GitHub Desktop.
Descending sort of Ruby files in a repository by number of commits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --name-only --no-merges | grep \.rb$ | sort | uniq -c | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lost the backslash. Trying again:
git log --name-only --no-merges | grep .rb$ | grep -v ^vendor | sort | uniq -c | sort -nr