diff options
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 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 |