Skip to content

Don't add bottom 'match' line for deleted files

Jan Provaznik requested to merge jprovazn-extra-line into master

What does this MR do?

Skips bottom 'match' line for diffs of deleted files.

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

If a file is deleted, its new_pos is 0 (less than total_blob_lines), but there is no reason to add the bottom 'match' line in this case because there is not extra content which could be expanded.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #48160 (closed)

Edited by Jan Provaznik

Merge request reports