Skip to main content

build_worktree_ignore

Function build_worktree_ignore 

Source
pub fn build_worktree_ignore(patterns: &[String]) -> WorktreeIgnoreMatcher
Expand description

Compile a WorktreeIgnoreMatcher from the given pattern strings, once, for reuse across many path checks. This is the compile-once counterpart to should_ignore, which rebuilds the matcher on every call.