summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-06-07 16:35:39 +0000
committerRobert Speicher <robert@gitlab.com>2017-06-07 16:35:39 +0000
commit6d01535e9ae1ef634f8e802414364c943edb4c32 (patch)
tree44e5f00ae418d157c5405a124780d0db31f317cb
parent35614e4311aba11761ba93873a5712329a7642cf (diff)
parent204db05637076b832adff113dc15615587b81523 (diff)
downloadgitlab-ce-6d01535e9ae1ef634f8e802414364c943edb4c32.tar.gz
Merge branch 'reenable-gitaly-commit-raw-diffs' into 'master'
Re-enable Gitaly commit_raw_diffs migration See merge request !11970
-rw-r--r--app/models/commit.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index bfa3a624e70..1a766c9f6d0 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -326,12 +326,11 @@ class Commit
end
def raw_diffs(*args)
- # Uncomment when https://gitlab.com/gitlab-org/gitaly/merge_requests/170 is merged
- # if Gitlab::GitalyClient.feature_enabled?(:commit_raw_diffs)
- # Gitlab::GitalyClient::Commit.new(project.repository).diff_from_parent(self, *args)
- # else
- raw.diffs(*args)
- # end
+ if Gitlab::GitalyClient.feature_enabled?(:commit_raw_diffs)
+ Gitlab::GitalyClient::Commit.new(project.repository).diff_from_parent(self, *args)
+ else
+ raw.diffs(*args)
+ end
end
def raw_deltas