Re: diff - Odd behavior of opton --ignore-matching-lines
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
> Date: Thu, 23 Feb 2012 09:50:21 +0200 > From: jaalto <[email protected]> > Cc: [email protected] > > | > Isn't --ignore-matching-lines supposed to ignore all lines matching REGEXP > | > "2" above? > | > | No. From "diff --help": > | > | -I RE --ignore-matching-lines=RE Ignore changes whose lines all match RE. > | ^^^ > > Hm. That's not clear still. I wouldn't know: all what? All lines, obviously. > -I, --ignore-matching-lines=RE > ignore changes whose lines all match RE. > > => Does it mean like this? > > -I, --ignore-matching-lines=RE > ignore changes whose lines all match RE. This means that > all lines in hunk from FILE1 and FILE2 must match this > regexp in order for the whole hunk to be ignored. Yes.