Method: GitStats::GitData::Repo#authors

Defined in:
lib/git_stats/git_data/repo.rb

#authorsObject



43
44
45
46
47
# File 'lib/git_stats/git_data/repo.rb', line 43

def authors
  @authors ||= run_and_parse("git shortlog -se #{commit_range} #{tree_path}").map do |author|
    Author.new(repo: self, name: author[:name], email: author[:email])
  end
end