Function git_attributes::parse::ignore

source ·
pub fn ignore(bytes: &[u8]) -> Lines<'_> 
Expand description

Parse git ignore patterns, line by line, from bytes.

Examples found in repository?
src/match_group.rs (line 39)
38
39
40
41
42
43
44
45
46
    fn bytes_to_patterns(bytes: &[u8]) -> Vec<PatternMapping<Self::Value>> {
        crate::parse::ignore(bytes)
            .map(|(pattern, line_number)| PatternMapping {
                pattern,
                value: (),
                sequence_number: line_number,
            })
            .collect()
    }