diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-09-04 14:13:24 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-09-08 09:05:17 +0200 |
commit | 721b75733c49117100a5caf04bf6040fe6004dca (patch) | |
tree | e079954eb95eabf9407e4b8c72f7efa9a5df31b3 /lib | |
parent | dc7554d020f7e278f30c8d4c4113a19f7c3cd82f (diff) | |
download | gitlab-ce-721b75733c49117100a5caf04bf6040fe6004dca.tar.gz |
Take the next type into consideration
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/diff_parser.rb | 3 |
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 |