Merge branch 'mk/diff-ignore-regex'

"git diff" family of commands learned the "-I<regex>" option to
ignore hunks whose changed lines all match the given pattern.

* mk/diff-ignore-regex:
  diff: add -I<regex> that ignores matching changes
  merge-base, xdiff: zero out xpparam_t structures
This commit is contained in:
Junio C Hamano
2020-11-02 13:17:43 -08:00
10 changed files with 226 additions and 2 deletions

4
diff.h
View File

@ -234,6 +234,10 @@ struct diff_options {
*/
const char *pickaxe;
/* -I<regex> */
regex_t **ignore_regex;
size_t ignore_regex_nr, ignore_regex_alloc;
const char *single_follow;
const char *a_prefix, *b_prefix;
const char *line_prefix;