RKrahl / archive-tools

Tools for managing archives
Apache License 2.0
1 stars 2 forks source link

Diff functionality #38

Closed RKrahl closed 4 years ago

RKrahl commented 4 years ago

Add the ability to diff two archives. As a command line tool, this should be similar to extracting the two archives to directories, lets say arch1 and arch2 and then running diff -qr arch1 arch2. It should report all files missing in either archive and all files having different type, size, or checksum. Differences in the file system metadata, such as uid, uname, gid, gname, mode, and mtime should be ignored by default, but there might be a command line switch to report also those. The paths should be taken relative to the respective base directory of the archive when matching the files. Something like:

$ archive-tool diff arch1.tar.bz2 arch2.tar.xz
Files arch1/INDEX and arch2/INDEX differ
Only in arch1.tar.bz2: file1.txt
Only in arch2.tar.xz: file2.dat