summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorvsizov <vsv2711@gmail.com>2012-01-28 16:42:14 +0300
committervsizov <vsv2711@gmail.com>2012-01-28 16:42:14 +0300
commit6572d96bb5468b9cdf17c34aec83224ad1840369 (patch)
treefb4abc227cf752647921eab2c222c2900accf41d /app/models/commit.rb
parentd6a0b8f42881964b9e57ad1dde4918e74aea0ed0 (diff)
parent7d750cbf79c446f097eab5e7a35a9d0040c9d4b6 (diff)
downloadgitlab-ce-6572d96bb5468b9cdf17c34aec83224ad1840369.tar.gz
Merge branch 'master' of github.com:gitlabhq/gitlabhq
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