pub fn dehydrate_tree(
repo: &Repo,
tree: &Tree<'_>,
paths: &[&Path],
) -> Result<NonZeroOid, Error>
Expand description
Filter the entries in the provided tree by only keeping the provided paths.
If a provided path does not appear in the tree at all, then it’s ignored.