mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-11 18:35:18 +00:00
fix: ensure non-empty lines are processed correctly in git patch handling
This commit is contained in:
parent
2c496b9d4e
commit
5432469ef6
1 changed files with 4 additions and 3 deletions
|
|
@ -164,9 +164,10 @@ def omit_deletion_hunks(patch_lines) -> str:
|
|||
inside_hunk = True
|
||||
else:
|
||||
temp_hunk.append(line)
|
||||
edit_type = line[0]
|
||||
if edit_type == '+':
|
||||
add_hunk = True
|
||||
if line:
|
||||
edit_type = line[0]
|
||||
if edit_type == '+':
|
||||
add_hunk = True
|
||||
if inside_hunk and add_hunk:
|
||||
added_patched.extend(temp_hunk)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue