Reverse xdelta patch

Is there a way to make a reverse xdelta patch?
For example:
A - version 1 of the file.
B - version 2 of the file.
P - patch.
We can update file B by applying patch P to file A.
Is there a way to update file A if I have file B and patch P?

+5
source share
1 answer

This is a requested feature, but for now you need to create two patches:

xdelta3 -e -s A B P1
xdelta3 -e -s B A P2
+2
source

All Articles