GitHub - kasun/bsdiffx: Make and apply patch utility for binary diff lib bsdiff

1 min read Original article ↗
Extension module of bsdiff to create, save and apply patches between versions of a file
-----------------------------------------------------------------------------

REQUIREMENTS

python bsdiff extension
--------------------------------------

HOW TO USE

bsdiffx.makePatch('old','new','patch')
given two versions of a file, 'old' and 'new' create the diff between two files and saves the diff to the file 'patch'

bsdiffx.applyPatch('old','patch','result')
given a file 'old' and a patch file 'patch' applies the patch to the 'old' file and produces the file 'result'