Added both committer and author display for commits list

This commit is contained in:
Dmitry Kalinkin 2012-01-12 03:12:49 +04:00
parent 3c9d7b7077
commit eb2a25f733
3 changed files with 22 additions and 3 deletions

View file

@ -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