Skip to main content

ChangeIgnoreRegex

Type Alias ChangeIgnoreRegex 

Source
pub type ChangeIgnoreRegex<'a> = &'a dyn Fn(&[u8]) -> bool;
Expand description

Configuration for change-group suppression (--ignore-blank-lines and -I<regex>). A change group is ignorable iff every old line and every new line it touches is blank (when ignore_blank_lines) or matches one of the -I regexes (regex_match). Ignorable groups are kept out of hunk emission per xdl_get_hunk’s leading/isolated-ignorable removal.