Skip to content

Commit fdf8d6a

Browse files
committed
update read me
1 parent 4f640bb commit fdf8d6a

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

README.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,71 @@
22

33
Port of the [diff.js](http://hg.opensource.lshift.net/synchrotron/file/default/)
44
library.
5+
6+
### Example using bin/diff.dart
7+
8+
```
9+
–(~/dart/diff)–($ dart bin/diff.dart /tmp/a.txt /tmp/o.txt /tmp/b.txt
10+
diff3_dig: /tmp/a.txt, /tmp/o.txt, /tmp/b.txt
11+
AA
12+
a
13+
<<<<<<<<<
14+
b
15+
=========
16+
d
17+
>>>>>>>>>
18+
c
19+
ZZ
20+
<<<<<<<<<
21+
new
22+
00
23+
a
24+
a
25+
=========
26+
11
27+
>>>>>>>>>
28+
M
29+
z
30+
z
31+
99
32+
```
33+
34+
Where the following input files are
35+
36+
```
37+
–(~/dart/diff)–($ cat /tmp/a.txt
38+
AA
39+
a
40+
b
41+
c
42+
ZZ
43+
new
44+
00
45+
a
46+
a
47+
M
48+
99
49+
```
50+
51+
```
52+
–(~/dart/diff)–($ cat /tmp/o.txt
53+
AA
54+
ZZ
55+
00
56+
M
57+
99
58+
```
59+
60+
```
61+
–(~/dart/diff)–($ cat /tmp/b.txt
62+
AA
63+
a
64+
d
65+
c
66+
ZZ
67+
11
68+
M
69+
z
70+
z
71+
99
72+
```

0 commit comments

Comments
 (0)