Unified Diff & Patch SyntaxStandard unified diff headers, hunk markers, and change indicators.
Identifies the file path or label of the original text before changes.
--- a/file.ts
Identifies the file path or label of the modified text after changes.
+++ b/file.ts
Hunk header: -l,s (original line, count) and +l,s (new line, count).
@@ -1,4 +1,6 @@
Line prefixed with + indicates a newly added line in the modified version.
+const tax = 0.05;
Line prefixed with - indicates a line removed from the original version.
-var total = 0;
Greedy O(ND) algorithm calculating the minimal edit distance path.
Eugene Myers 1986