cujojs / jiff

JSON Patch and diff based on rfc6902
Other
627 stars 41 forks source link

Add rebase and unit test #18

Closed briancavalier closed 10 years ago

briancavalier commented 10 years ago

Given a patch history H (sequence of patches, ie Array of patches) and a parallel patch P rooted at the same document context, rebase P onto H.

This adds jiff/lib/rebase as an experimental API, and refactors jiff/lib/commute to be more flexible.