pub fn tree_entries(payload: &[u8], oid_len: usize) -> Vec<TreeEntry<'_>>Expand description
Parse a tree payload: a sequence of <mode> <name>\0<raw oid>.
Stops at the first malformed record and returns what it read so far — a corrupt tree degrades the reachability closure, it never panics (P-4).