zhang-shasha
zhang-shasha copied to clipboard
Different diffs produce same `Operation` lists
I'm attempting to use zss to create a reasonable "patch" between two trees. The following two tree-pairs produce the same set of operations, and I'm not sure how you're supposed to differentiate between them:
|
|
|
|
Which both result in:
<Operation Insert: None to Node('C')>
<Operation Insert: None to Node('B')>
<Operation Match: Node('A') to Node('A')>
Is this ambiguity intentional (since this is primarily an edit distance library), or am I missing something?