How to tell if old and new files are identical
Tithen-Firion opened this issue · comments
I know I can hash them before using xdelta but that would mean reading them from disk twice.
Some switch that deletes created diff and returns specific exit code on identical files would be perfect but I need something that works now.
I'm pretty sure I need to use one of those commands but don't know which one and what to look for.
special commands for VCDIFF inputs:
printdelta print information about the entire delta
printhdr print information about the first window
printhdrs print information about all windows
Edit: if sum of all VCDIFF data section length:
from printhdrs
equals 0, files are identical.
I'd still love to see the switch I mentioned before implemented so I'm keeping this open.