This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -89,9 +89,9 @@ def parse_diff(diff_text: str) -> list[FileDiff]:
|
|||||||
if line.startswith("diff --git "):
|
if line.startswith("diff --git "):
|
||||||
flush_file()
|
flush_file()
|
||||||
header_lines = [line]
|
header_lines = [line]
|
||||||
p = line.split()
|
parts = line.split()
|
||||||
if len(parts) >= 4 and p[3].startswith("b/"):
|
if len(parts) >= 4 and parts[3].startswith("b/"):
|
||||||
current_path = p[3][len("b/") :]
|
current_path = parts[3][len("b/") :]
|
||||||
else:
|
else:
|
||||||
current_path = None
|
current_path = None
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user