2013-12-17 09:20:45 -05:00
|
|
|
#{@author.name} pushed to #{@branch} at #{@project.name_with_namespace}
|
2013-12-17 08:30:15 -05:00
|
|
|
|
|
|
|
\
|
|
|
|
Commits:
|
|
|
|
- @commits.each do |commit|
|
|
|
|
#{commit.short_id} - #{truncate(commit.title, length: 40)}
|
|
|
|
\
|
|
|
|
\
|
|
|
|
Diff:
|
|
|
|
- @diffs.each do |diff|
|
|
|
|
\
|
|
|
|
\=====================================
|
|
|
|
- if diff.old_path == diff.new_path
|
|
|
|
= diff.new_path
|
|
|
|
- elsif diff.new_path && diff.old_path
|
|
|
|
#{diff.old_path} → #{diff.new_path}
|
|
|
|
- else
|
|
|
|
= diff.new_path || diff.old_path
|
|
|
|
\=====================================
|
|
|
|
= diff.diff
|
2014-02-12 05:56:13 -05:00
|
|
|
\
|
|
|
|
- if @compare.timeout
|
|
|
|
Huge diff. To prevent performance issues it was hidden
|
|
|
|
- elsif @compare.commits_over_limit?
|
|
|
|
Diff for big amount of commits is disabled
|