Skip to main content

should_ignore

Function should_ignore 

Source
pub fn should_ignore(
    relative: &Path,
    extra_ignores: &[String],
    web_root_relative: Option<&Path>,
) -> bool
Expand description

Check whether a path component matches any of the built-in or extra ignore patterns.

This checks directory names in the path. Glob-style patterns (e.g. *.log) are matched against the filename of the changed file.