pub fn read_tree(
repo: &Path,
reference: &str,
) -> Result<Vec<TreeEntry>, SyncError>Expand description
Reads the full (recursive) tree of a ref as a list of blob entries.
Runs git ls-tree -r <reference>. The reference may be a ref name, a commit
SHA, or a tree SHA. Returns an error if the reference cannot be resolved;
call ref_exists first when the ref may be absent.