CreateReversePatch computes a patch that transforms newText back into oldText. Used for reverse-diff version storage: current doc has latest content, versions store patches to go backwards.
(oldText, newText string)
| 53 | // Used for reverse-diff version storage: current doc has latest content, |
| 54 | // versions store patches to go backwards. |
| 55 | func CreateReversePatch(oldText, newText string) string { |
| 56 | return CreatePatch(newText, oldText) |
| 57 | } |
| 58 | |
| 59 | // FormatDiffSummary returns a human-readable summary of changes. |
| 60 | func FormatDiffSummary(oldText, newText string) string { |