summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-09-04 14:13:24 +0200
committerMarin Jankovski <marin@gitlab.com>2014-09-08 09:05:17 +0200
commit721b75733c49117100a5caf04bf6040fe6004dca (patch)
treee079954eb95eabf9407e4b8c72f7efa9a5df31b3 /lib
parentdc7554d020f7e278f30c8d4c4113a19f7c3cd82f (diff)
downloadgitlab-ce-721b75733c49117100a5caf04bf6040fe6004dca.tar.gz
Take the next type into consideration
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/diff_parser.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/diff_parser.rb b/lib/gitlab/diff_parser.rb
index f226692a63c..3f402c4c238 100644
--- a/lib/gitlab/diff_parser.rb
+++ b/lib/gitlab/diff_parser.rb
@@ -38,8 +38,9 @@ module Gitlab
next
else
type = identification_type(line)
+ next_type = identification_type(next_line)
line_code = generate_line_code(new_path, line_new, line_old)
- yield(full_line, type, line_code, line_new, line_old, raw_line, next_line)
+ yield(full_line, type, line_code, line_new, line_old, raw_line, next_type, next_line)
end