sscargal / pmemchk

MIT License
0 stars 1 forks source link

[pmemchk diff] Show differences between two datasets #114

Open sscargal opened 2 years ago

sscargal commented 2 years ago

Given two collected datasets, report differences between them. This will show what changed. The result would be best digested in a HTML file that allows easy navigation to highlight:

Use git diff as an example. Implement using the (-D) option or new pmemchk diff datasetA datasetB command

sscargal commented 2 years ago

Tools such as diffconfig that are used to compare Kernel .config files do a nice job of showing which option(s) have been added, removed, or their values changed from old to new.

Other approaches would be to sort the files, then compare. Examples:

meld <(sort file-a) <(sort file-b)
comm -3 <(<old.config grep '^[^#]' | sort) <(<new.config grep '^[^#]' | sort)
kdiff3 file-a file-b