Created
May 20, 2011 15:46
-
-
Save suryagaddipati/983198 to your computer and use it in GitHub Desktop.
git_counts
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
Dir.glob(File.join( "**",'*')).inject({}) {|counts, file| counts[file] = `git log --pretty=format:"%h %ad | %s%d [%an]" --date=short --name-only #{file}`.count('|'); counts } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment