diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-27 11:15:24 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-27 11:15:24 -0800 |
commit | 7d750cbf79c446f097eab5e7a35a9d0040c9d4b6 (patch) | |
tree | 6b1d87a28b3a47bbe95e0cc575248bcb85170899 /app/models/commit.rb | |
parent | e0f07cca6b258b2096a6cc32a3c98be7f5261989 (diff) | |
parent | eb2a25f733e0ed39788022fbe901cb69967d9878 (diff) | |
download | gitlab-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.rb | 10 |
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 |