Skip to main content

filter_tree

Function filter_tree 

Source
pub fn filter_tree(
    repo: &Repository,
    treeish: &str,
    patterns: &[String],
) -> Result<Oid, Box<dyn Error>>
Expand description

Core filter-tree operation: resolve the treeish, filter by patterns, and return the OID of the resulting tree. This is the reusable building-block that both the plumbing binary and the porcelain CLI can call.