Method: GitStats::GitData::Repo#lines_count_by_date
- Defined in:
- lib/git_stats/git_data/repo.rb
#lines_count_by_date ⇒ Object
84 85 86 87 88 89 90 91 |
# File 'lib/git_stats/git_data/repo.rb', line 84 def lines_count_by_date sum = 0 @lines_count_by_date ||= commits.map do |commit| sum += commit.short_stat.insertions sum -= commit.short_stat.deletions [commit.date.to_date, sum] end.to_h end |