You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ls
t1.txt t2.txt
$ diff -u t1.txt t2.txt
--- t1.txt 2015-12-29 00:46:20.201829172 -0300
+++ t2.txt 2015-12-29 00:46:28.146828695 -0300
@@ -1,3 +1,3 @@
line1
line2
-line3
\ No newline at end of file
+line33
\ No newline at end of file
Using jsdiff, I get (on Node):
> var p = diff.createPatch("", "line1\nline2\nline3", "line1\nline2\nline33")
undefined
> console.log(p)
Index:
===================================================================
---
+++
@@ -1,3 +1,3 @@
line1
line2
-line3
\ No newline at end of file
+line33
There's a \ No newline at end of file missing after +line33.