Created
June 19, 2012 22:43
-
-
Save jennifersmith/2956969 to your computer and use it in GitHub Desktop.
stats stuff
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
1) Download cloc, chmod it and have it on your path somewhere (as cloc) | |
2) get the scan-history script | |
curl https://raw.github.com/rhunter/git-scan-history/master/bin/git-scan-history > ~/bin/git-scan-history | |
3) chmod it | |
chmod +x ~/bin/git-scan-history | |
4) Now run this big command | |
git scan-history HEAD --run 'echo $(git show HEAD --pretty=format:" foobar %h %at" --stat | head -1) " " $(cloc . -q --exclude-dir=vendor --match-f "\.rb" | tail -2 | head -1)' --sample-every 200 --notes-ref=refs/notes/cloc | |
5) then send me the output of this file : | |
git archive refs/notes/cloc | |
(note that refs/notes/cloc in both instances has to be the same - append a _1 if one run goes wrong) | |
(double note - if it goes wrong, you need to git pull ) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment