ignored 0.0.6

A Rust implementation of the .gitignore file format for quickly checking whether a path is ignored by git - without invoking the git cli.
Documentation
1
2
3
4
5
6
7
8
9
use thiserror::Error;

/// Errors that can occur during lexing of `.gitignore` patterns.
#[derive(Debug, Error, PartialEq, Eq)]
pub enum Error {
    /// A pattern contained inside a `.gitignore` file was not valid syntactically.
    #[error("Invalid pattern: {0}")]
    InvalidPattern(String),
}