Closed mgrinzPlayer closed 9 months ago
thanks @mgrinzPlayer I update cmdline, see option "-info diffFile"
Thank you very much. What about -info#oldsize diffFile
-info#newsize diffFile
(just number in bytes)? Do you think it is not needed?
It could be used with windows batch script (or unix scripts without the need of cut
/ awk
/ etc.)
for /f %A in ('hdiffzpatch.exe -info#oldsize diffFile') do set oldfilesize=%A
I have no plans to implement -info#* (just number in bytes)
, you can fork and add it by yourself.
OK. Thank you.
First, thank you for your work.
Currently, when I want to get some info from diffFile (without accessing old orig file), I would run something like this, but there's only oldDataSize:
With this dirty patch:
I can get all needed info without accessing old original file:
I use those information to decide if additional step is needed:
It would be nice to get the information natively, maybe
-i
(or-diffinfo
) switch hpatchz -diffinfo DIFF > prints all info hpatchz -diffinfo#oldsize DIFF > prints oldDataSize only (just number, in bytes) hpatchz -diffinfo#newsize DIFF > prints newDataSize only (just number, in bytes) hpatchz -diffinfo#compresstype DIFF > prints compress type hpatchz -diffinfo#neededmemory DIFF > required bytes of memory (patching+decompress) etc.of course BSDIFF and VCDIFF will show:
diffFile saved oldDataSize : unavailable