pub fn parse_tree(data: &[u8]) -> Result<Vec<TreeEntry>>Expand description
Parse the raw data of a tree object into its entries.
§Format
Each entry is "<mode> <name>\0<20-byte-sha1>" concatenated with no
separator between entries.
§Errors
Returns Error::CorruptObject if the data is malformed.