summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2017-04-21 15:02:21 +0200
committerAhmad Sherif <me@ahmadsherif.com>2017-05-07 23:37:42 +0200
commit34cd10979757cdad26056a532cf09c59a7f74ae9 (patch)
tree28644688c71cdd089870444eba9a5455f1535143 /lib
parent6ad3814e1b31bfacfae7a2aabb4e4607b12ca66f (diff)
downloadgitlab-ce-34cd10979757cdad26056a532cf09c59a7f74ae9.tar.gz
Re-enable Gitaly commit_raw_diff feature
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/gitaly_client/commit.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client/commit.rb b/lib/gitlab/gitaly_client/commit.rb
index 27db1e19bc1..0b001a9903d 100644
--- a/lib/gitlab/gitaly_client/commit.rb
+++ b/lib/gitlab/gitaly_client/commit.rb
@@ -32,7 +32,9 @@ module Gitlab
request = Gitaly::CommitDiffRequest.new(
repository: gitaly_repo,
left_commit_id: parent_id,
- right_commit_id: commit.id
+ right_commit_id: commit.id,
+ ignore_whitespace_change: options.fetch(:ignore_whitespace_change, false),
+ paths: options.fetch(:paths, []),
)
Gitlab::Git::DiffCollection.new(stub.commit_diff(request), options)