diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2017-04-21 15:02:21 +0200 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2017-05-07 23:37:42 +0200 |
commit | 34cd10979757cdad26056a532cf09c59a7f74ae9 (patch) | |
tree | 28644688c71cdd089870444eba9a5455f1535143 /lib | |
parent | 6ad3814e1b31bfacfae7a2aabb4e4607b12ca66f (diff) | |
download | gitlab-ce-34cd10979757cdad26056a532cf09c59a7f74ae9.tar.gz |
Re-enable Gitaly commit_raw_diff feature
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gitaly_client/commit.rb | 4 |
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) |