Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-06-06 19:46:28 +0300
committerDouwe Maan <douwe@selenight.nl>2017-06-06 22:48:05 +0300
commit3a5d375e49b808ca203cb40b5f907aafb40f53aa (patch)
treeb6083a59d35cfd4bef6a54df9aa7f95a82d6d193 /app/services/compare_service.rb
parent4ab1e07fd3fef373a83137ca851558b0f327bfd5 (diff)
Fix Diff::Position#diff_file for positions on straight diffs
Diffstat (limited to 'app/services/compare_service.rb')
-rw-r--r--app/services/compare_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/compare_service.rb b/app/services/compare_service.rb
index ab4c02a97a0..a5ae4927412 100644
--- a/app/services/compare_service.rb
+++ b/app/services/compare_service.rb
@@ -17,18 +17,18 @@ class CompareService
start_branch_name) do |commit|
break unless commit
- compare(commit.sha, target_project, target_branch, straight)
+ compare(commit.sha, target_project, target_branch, straight: straight)
end
end
private
- def compare(source_sha, target_project, target_branch, straight)
+ def compare(source_sha, target_project, target_branch, straight:)
raw_compare = Gitlab::Git::Compare.new(
target_project.repository.raw_repository,
target_branch,
source_sha,
- straight
+ straight: straight
)
Compare.new(raw_compare, target_project, straight: straight)