summaryrefslogtreecommitdiff
path: root/lib/api/commits.rb
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2017-10-06 19:42:56 -0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2017-10-12 21:45:16 -0300
commitf72598b659871a3d4e8ef1905918067522ba2a29 (patch)
tree97e3c6d8311c134a0df4ffa5023b4e43aea45012 /lib/api/commits.rb
parent9fda629a347cb43d8f5871f101192187fcdeeea2 (diff)
downloadgitlab-ce-f72598b659871a3d4e8ef1905918067522ba2a29.tar.gz
Move Gitlab::Diff::LineCode to module Gitlab::Git
Diffstat (limited to 'lib/api/commits.rb')
-rw-r--r--lib/api/commits.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb
index 4af37a2ad1d..e2d50b4e0a6 100644
--- a/lib/api/commits.rb
+++ b/lib/api/commits.rb
@@ -186,7 +186,7 @@ module API
lines.each do |line|
next unless line.new_pos == params[:line] && line.type == params[:line_type]
- break opts[:line_code] = Gitlab::Diff::LineCode.generate(diff.new_path, line.new_pos, line.old_pos)
+ break opts[:line_code] = Gitlab::Git::DiffLineCode.generate(diff.new_path, line.new_pos, line.old_pos)
end
break if opts[:line_code]