summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
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