summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-27 11:15:24 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-27 11:15:24 -0800
commit7d750cbf79c446f097eab5e7a35a9d0040c9d4b6 (patch)
tree6b1d87a28b3a47bbe95e0cc575248bcb85170899 /app/models/commit.rb
parente0f07cca6b258b2096a6cc32a3c98be7f5261989 (diff)
parenteb2a25f733e0ed39788022fbe901cb69967d9878 (diff)
downloadgitlab-ce-7d750cbf79c446f097eab5e7a35a9d0040c9d4b6.tar.gz
Merge pull request #283 from veprbl/master
Display both author and committer in commits list
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 695dfa5277e..7f06f4e68fa 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -5,10 +5,12 @@ class Commit
attr_accessor :refs
delegate :message,
+ :authored_date,
:committed_date,
:parents,
:sha,
:date,
+ :committer,
:author,
:message,
:diffs,
@@ -37,6 +39,14 @@ class Commit
author.name
end
+ def committer_name
+ committer.name
+ end
+
+ def committer_email
+ committer.email
+ end
+
def prev_commit
parents.first
end