Skip to main content

IgnoreReader

Trait IgnoreReader 

Source
pub trait IgnoreReader {
    // Required method
    fn is_ignored(&self, path: &str) -> AppResult<bool>;
}
Expand description

Read access to Git ignore rules.

Required Methods§

Source

fn is_ignored(&self, path: &str) -> AppResult<bool>

Reports whether a repository-relative path is ignored by Git.

The path does not need to exist in the working tree.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§