I created this issue below on Github, but I'm also replicating the question here:
https://github.com/librsync/librsync/issues/148---
Considering that I generate a diff/patch for a specific file every time that it is modified and that I store all these diffs/patches individually and sequentially, would it be possible to merge all patches into a single (final) patch that covers all the changes on the file and only apply this final patch?
Is it possible to do that using librsync? If not, is there any conceptual limitation/challenge that would make it impossible to implement it?
If my interpretation is not wrong, the Xdelta lib has support for what I'm asking above. Just to make it clear, the intention here is not to compare the two, but just to clarify what I'm trying to achieve with librsync.
"The new merge command allows you to combine a sequence of deltas, to produce a single output that represents the net effect of the sequence. The command is reasonably efficient because it computes the result directly, without constructing any intermediate copies (and without access to the first-of-chain source).
---
Thanks in advance.
Regards,
Gabriel