summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorP.S.V.R <pmq2001@gmail.com>2016-04-18 16:27:51 +0800
committerRémy Coutable <remy@rymai.me>2017-01-16 23:28:44 -0500
commit632d22acf765339a35e4552b43e680398bddbf65 (patch)
tree1f668b83f769c8bddbb767144fe18a7d7441068a /app/models/commit.rb
parent78d710388fbabe27481c77cc353610904465c4df (diff)
downloadgitlab-ce-632d22acf765339a35e4552b43e680398bddbf65.tar.gz
Mark Commit persistedpmq20/gitlab-ce-psvr/persisted
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 0b924b063a4..3365f4ffdbf 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -318,6 +318,14 @@ class Commit
Gitlab::Diff::FileCollection::Commit.new(self, diff_options: diff_options)
end
+ def persisted?
+ true
+ end
+
+ def touch
+ # no-op but needs to be defined since #persisted? is defined
+ end
+
private
def commit_reference(from_project, referable_commit_id, full: false)