pub fn working_file_is_binary(repo_path: &Path, rel_path: &str) -> boolExpand description
Whether a working-tree file looks binary — a NUL byte in the first 8 KiB
(git’s heuristic). Reads only that prefix, so a large binary isn’t slurped in
full just to be classified. Absent or unreadable ⇒ false.