Method: GitStats::GitData::Repo#commits_count_by_author
- Defined in:
- lib/git_stats/git_data/repo.rb
#commits_count_by_author(limit = 4) ⇒ Object
TODO: This method is called from nowhere
67 68 69 |
# File 'lib/git_stats/git_data/repo.rb', line 67 def (limit = 4) (.map { || [, .commits.size] }.sort_by { |, commits| -commits }[0..limit]).to_h end |