Commit 7e8bf92bd77f5a63802c87bfbb6282a17a43c691

Authored by Dmitriy Zaporozhets
1 parent 94390fc7

remove unnecessary decorations

app/views/graph/show.json.erb
@@ -7,9 +7,9 @@ @@ -7,9 +7,9 @@
7 { 7 {
8 parents: parents_zip_spaces(c.parents(@graph.map), c.parent_spaces), 8 parents: parents_zip_spaces(c.parents(@graph.map), c.parent_spaces),
9 author: { 9 author: {
10 - name: c.author.name,  
11 - email: c.author.email,  
12 - icon: gravatar_icon(c.author.email, 20) 10 + name: c.author_name,
  11 + email: c.author_email,
  12 + icon: gravatar_icon(c.author_email, 20)
13 }, 13 },
14 time: c.time, 14 time: c.time,
15 space: c.spaces.first, 15 space: c.spaces.first,
lib/gitlab/git/compare.rb
@@ -20,10 +20,8 @@ module Gitlab @@ -20,10 +20,8 @@ module Gitlab
20 return 20 return
21 end 21 end
22 22
23 - @commit = Commit.new(first)  
24 - 23 + @commit = first
25 @commits = repository.commits_between(last.id, first.id) 24 @commits = repository.commits_between(last.id, first.id)
26 - @commits = @commits.map { |c| Commit.new(c) }  
27 25
28 @diffs = if @commits.size > 100 26 @diffs = if @commits.size > 100
29 [] 27 []