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:
authorMarin Jankovski <marin@gitlab.com>2014-09-04 16:13:24 +0400
committerMarin Jankovski <marin@gitlab.com>2014-09-08 11:05:17 +0400
commit721b75733c49117100a5caf04bf6040fe6004dca (patch)
treee079954eb95eabf9407e4b8c72f7efa9a5df31b3 /lib/gitlab
parentdc7554d020f7e278f30c8d4c4113a19f7c3cd82f (diff)
Take the next type into consideration
Diffstat (limited to 'lib/gitlab')
-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