From 7e8bf92bd77f5a63802c87bfbb6282a17a43c691 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 3 Apr 2013 09:32:17 +0300 Subject: [PATCH] remove unnecessary decorations --- app/views/graph/show.json.erb | 6 +++--- lib/gitlab/git/compare.rb | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/graph/show.json.erb b/app/views/graph/show.json.erb index 529d584..9a62cdb 100644 --- a/app/views/graph/show.json.erb +++ b/app/views/graph/show.json.erb @@ -7,9 +7,9 @@ { parents: parents_zip_spaces(c.parents(@graph.map), c.parent_spaces), author: { - name: c.author.name, - email: c.author.email, - icon: gravatar_icon(c.author.email, 20) + name: c.author_name, + email: c.author_email, + icon: gravatar_icon(c.author_email, 20) }, time: c.time, space: c.spaces.first, diff --git a/lib/gitlab/git/compare.rb b/lib/gitlab/git/compare.rb index 1fa4306..e34f204 100644 --- a/lib/gitlab/git/compare.rb +++ b/lib/gitlab/git/compare.rb @@ -20,10 +20,8 @@ module Gitlab return end - @commit = Commit.new(first) - + @commit = first @commits = repository.commits_between(last.id, first.id) - @commits = @commits.map { |c| Commit.new(c) } @diffs = if @commits.size > 100 [] -- libgit2 0.21.2