[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [GNU diff] new (?) conditional diff functionality
From: |
Frédéric Conrotte |
Subject: |
RE: [GNU diff] new (?) conditional diff functionality |
Date: |
Wed, 29 Oct 2003 17:30:53 +0100 |
I'd like to amend diff.c to make this option available
Is there any docs available regarding the diff source code ? a devel package ?
Otherwise, gdb is always my good old friend :-)
Fred
-----Original Message-----
From: Stepan Kasal [mailto:address@hidden
Sent: Wednesday, October 29, 2003 4:40 PM
To: Paul Eggert
Cc: Frédéric Conrotte; address@hidden
Subject: Re: [GNU diff] new (?) conditional diff functionality
Hello,
On Wed, Oct 29, 2003 at 07:32:43AM -0800, Paul Eggert wrote:
> diff doesn't do that now. It does have an -I option, though, which
> may do some of what you want: it ignores changes whose lines all match
> a pattern. If you can write a pattern that matches all lines not
> containing the tag, then you're partway there.
and if you cannot write such pattern, you can preprocess all the source
file, so that all lines not containing your tag get another special tag.
Then you can make use of -I.
The you have to remove the temporary tag from the resulting diff files.
HTH,
Stepan Kasal