Re: [PATCH v2 2/3] diff: add -I<regex> that ignores matching changes
Show 10 quoted lines
> > + /* see Documentation/diff-options.txt */
>
> This comment adds negative value.
>
> If it were
>
> /* "-I<regexp>" */
>
> the readers won't have to switch to the file only to find out that
> the comment didn't tell them where in the file to look at.
Agreed, thanks, I will fix this in v3.
Show 17 quoted lines
> > + 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;
> > diff --git a/xdiff/xdiff.h b/xdiff/xdiff.h
> > index 032e3a9f41..883a0d770e 100644
> > --- a/xdiff/xdiff.h
> > +++ b/xdiff/xdiff.h
> > @@ -79,6 +79,10 @@ typedef struct s_mmbuffer {
> > typedef struct s_xpparam {
> > unsigned long flags;
> >
> > + /* See Documentation/diff-options.txt. */
>
> Likewise.--
Best regards,
Michał Kępień