Merge pull request #283 from veprbl/master
Display both author and committer in commits list
This commit is contained in:
commit
7d750cbf79
3 changed files with 22 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue