pub fn parse_batch(
output: &[u8],
names: &[String],
) -> Result<BTreeMap<String, String>, String>Expand description
What:
Split git cat-file --batch output for the requested names into texts; a name Git reports missing has none.
Why:
A file the commit deleted has no new-side text, and a size says where content ends, never a delimiter.
In TS you’d write (pseudocode):
parseBatch({ output, names }): Map<string, string>