pub fn ignore(bytes: &[u8]) -> Lines<'_> ⓘ
Parse git ignore patterns, line by line, from bytes.
bytes
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() }