[diffoscope] Excluding certain changes from diffoscope output

Jelmer Vernooij jelmer at jelmer.uk
Thu Jan 2 14:53:31 UTC 2020


What is the best way to filter out certain changes from diffoscope
output?

The use case I have in mind is where you have two Debian changes files
with different version strings. I'm interested in any changes that
are not merely introduced by the differing version strings. Several
non-trivial things change when the version string changes though,
such as the dependencies between binary packages in control files.

It would be ideal if there was a way to say "there's no need to show
any diffs where all that's happening is string A is being replaced
with string B".

I've experimented with debdiff, and post-processing its output to
filter out any wdiff changes that are purely replacing the version
strings. diffoscope's output is much more useful though, but it is also
harder to postprocess (and that will probably be brittle) AFAICT.

Jelmer

-- 
Jelmer Vernooij <jelmer at jelmer.uk>
PGP Key: https://www.jelmer.uk/D729A457.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.reproducible-builds.org/pipermail/diffoscope/attachments/20200102/b8ab647f/attachment.sig>


More information about the diffoscope mailing list