fix: ensure non-empty lines are processed correctly in git patch handling

This commit is contained in:
mrT23 2024-09-01 08:39:29 +03:00
parent 2c496b9d4e
commit 5432469ef6
No known key found for this signature in database
GPG key ID: D350490E39D5F5AD

View file

@ -164,6 +164,7 @@ def omit_deletion_hunks(patch_lines) -> str:
inside_hunk = True
else:
temp_hunk.append(line)
if line:
edit_type = line[0]
if edit_type == '+':
add_hunk = True