Created
January 29, 2016 16:54
-
-
Save gkthiruvathukal/a0161a0cb797934fafa3 to your computer and use it in GitHub Desktop.
Build timeline of CLOC/NCLOC by commit, by file, and in XML format
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
| # OS X: brew install cloc | |
| # %H gives us the full hash (commit ID) only in a list | |
| for commit in $(git log --pretty=format:"%H"); do | |
| git checkout $commit | |
| cloc --by-file --xml . | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment