MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / is_binary_block

Function is_binary_block

codeclash/tournaments/utils/git_utils.py:15–22  ·  view source on GitHub ↗
(bl: list[str])

Source from the content-addressed store, hash-verified

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."""

Callers 1

filter_git_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected