Skip to content

Patch Inversion #2

Open
Open

Description

@mnot

Activity

  1. briancavalier commented on May 8, 2014

    @briancavalier

    Also see cujojs/jiff#15 - brainstorming possible ways to allow inversion.

  2. espadrine commented on Aug 24, 2016

    @espadrine

    I personally lean towards cujojs/jiff#15 (comment), using the key was. I implemented that in https://github.com/espadrine/json-diff.

    However, there's a small catch: if an add operation was generated, but it replaces data instead of just adding it, its inverse won't yield the original document. I suppose the patch generator has to ensure that they only use add as a strict add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions