(bl: list[str])
| 13 | prelude_copied = False |
| 14 | |
| 15 | def is_binary_block(bl: list[str]) -> bool: |
| 16 | for ln in bl: |
| 17 | s = ln.strip() |
| 18 | if ln.startswith("Binary files "): |
| 19 | return True |
| 20 | if s == "GIT binary patch": |
| 21 | return True |
| 22 | return False |
| 23 | |
| 24 | def extract_file_path_from_block(bl: list[str]) -> str: |
| 25 | """Extract file path from a git diff block.""" |