bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-diffutils] [PATCH] Add --ed-line-numbers-only option to diff


From: Paul Eggert
Subject: Re: [bug-diffutils] [PATCH] Add --ed-line-numbers-only option to diff
Date: Mon, 15 Aug 2011 01:13:08 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11

Can you get the effect that you want with the existing format options?
I don't know exactly what is wanted here, but how about something like
the following shell script?

diff --old-group-format='old=%dn
' --new-group-format='new=%dN
' --unchanged-group-format='unchanged=%dn
' --changed-group-format='changed=%dn,%dN
' OLD NEW

where OLD and NEW are the files being compared.

This way, you wouldn't need to alter GNU diff, and could just use
the options that are already there.  These formats are designed for
the kind of specialized situation that you ran into.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]