Skip to main content

parse_tree

Function parse_tree 

Source
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.