How to use Text diff
- 1. Paste left and right. Or drop a file on the left.
- 2. Copy the unified diff. git-apply style.
- 3. Optional: paste a patch. Applied to the left.
- 4. Watch failures. Context mismatches throw.
About this tool
A unified diff is the lingua franca of code review. Building and applying one locally is useful when the files never should hit a gist.
Context
jsdiff uses default context lines. Huge moves may look noisy.
Binary
Don't. Use hash compare.
Code examples
diff
--- a
+++ b
@@ -1 +1 @@
-old
+new