benjamine/JsonDiffPatch — Issue #1: inverting patches
Author: lerouxb
Created: 2012-02-16 14:45:33+00:00
State: open

I'm wondering if there is a simple/obvious way to invert patches that I'm missing. Basically I want to be able to apply a patch and "un-apply" it too. Think "undo" and "redo". I suppose I could diff the json structures in reverse, but I was thinking that's a bit inefficient.

I just thought I would ask just in case you already know of an obvious solution.