pub fn parse_git_tree(
format: ObjectFormat,
body: &[u8],
) -> Result<Vec<GitTreeEntryRef<'_>>, TreeError>Expand description
Parse a raw Git tree body (<mode> SP <name> NUL <oid>…) in source
order, keeping each mode’s digits. Git porcelain parsers turn the digits
into a number, which loses 040000 versus 40000; importers that must
reproduce the source tree read it through this instead.