Collaborative Working Sessions - Filtering diffoscope output

Goal: add patterns to filter out some parts of output, or filters to only show some parts of output

Requirements:

A number of options exist:

Internally, state is a series of deeply nested dictionaries. The comparator is called with a paths of keys.

Issues about –exclude* already exist: https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/130 https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/53 https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/52

Filtering by “output level” is not enough. For example, in an RPM header, some specific fields should be ignored, but only those.

Idea: provide a command to filter the output using a jq-like path.