diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-29 20:06:37 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-29 20:06:37 +0200 |
commit | 79b64ef4aced8c030b23b2b7c4aa9b1bea192e1b (patch) | |
tree | 5aa826fca9c92dfead1d9241967d673786c9cf1f /app/models/commit.rb | |
parent | 958497fecbc630297f2d0d5f7b64b484966ae907 (diff) | |
download | gitlab-ce-79b64ef4aced8c030b23b2b7c4aa9b1bea192e1b.tar.gz |
fixed merge request diff
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 0884e34225c..c97aec28c72 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -36,4 +36,8 @@ class Commit def author_name encode(author.name) end + + def prev_commit + parents.first + end end |