summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-29 23:34:06 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-29 23:34:06 +0200
commit1924de91c58a429452edd97b181520abd9968bf7 (patch)
treee0d91cd7f825cee10279e129c662f40e09a253c2 /app/models/commit.rb
parentf6f939eeb8e2864564942885e9254ca7670b75e7 (diff)
downloadgitlab-ce-1924de91c58a429452edd97b181520abd9968bf7.tar.gz
fixed compare for push
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 281e3f036e2..a59e880370a 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -56,4 +56,8 @@ class Commit
def prev_commit
parents.first
end
+
+ def prev_commit_id
+ prev_commit.id
+ end
end