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 commits_count_by_author(limit = 4)
  (authors.map { |author| [author, author.commits.size] }.sort_by { |_author, commits| -commits }[0..limit]).to_h
end