Show More
@@ -1,49 +1,58 | |||
|
1 | 1 | adding a |
|
2 | 2 | % default context |
|
3 | 3 | diff -r cf9f4ba66af2 a |
|
4 | 4 | --- a/a |
|
5 | 5 | +++ b/a |
|
6 | 6 | @@ -2,7 +2,7 @@ |
|
7 | 7 | c |
|
8 | 8 | a |
|
9 | 9 | a |
|
10 | 10 | -b |
|
11 | 11 | +dd |
|
12 | 12 | a |
|
13 | 13 | a |
|
14 | 14 | c |
|
15 | 15 | % invalid --unified |
|
16 | 16 | abort: diff context lines count must be an integer, not 'foo' |
|
17 | 17 | % --unified=2 |
|
18 | 18 | diff -r cf9f4ba66af2 a |
|
19 | 19 | --- a/a |
|
20 | 20 | +++ b/a |
|
21 | 21 | @@ -3,5 +3,5 @@ |
|
22 | 22 | a |
|
23 | 23 | a |
|
24 | 24 | -b |
|
25 | 25 | +dd |
|
26 | 26 | a |
|
27 | 27 | a |
|
28 | 28 | % diff.unified=2 |
|
29 | 29 | diff -r cf9f4ba66af2 a |
|
30 | 30 | --- a/a |
|
31 | 31 | +++ b/a |
|
32 | 32 | @@ -3,5 +3,5 @@ |
|
33 | 33 | a |
|
34 | 34 | a |
|
35 | 35 | -b |
|
36 | 36 | +dd |
|
37 | 37 | a |
|
38 | 38 | a |
|
39 | 39 | % diff.unified=2 --unified=1 |
|
40 | 40 | diff -r cf9f4ba66af2 a |
|
41 | 41 | --- a/a |
|
42 | 42 | +++ b/a |
|
43 | 43 | @@ -4,3 +4,3 @@ |
|
44 | 44 | a |
|
45 | 45 | -b |
|
46 | 46 | +dd |
|
47 | 47 | a |
|
48 | 48 | % invalid diff.unified |
|
49 | 49 | abort: diff context lines count must be an integer, not 'foo' |
|
50 | % test off-by-one error with diff -p | |
|
51 | adding a | |
|
52 | diff -r cb9a9f314b8b a | |
|
53 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
|
54 | +++ b/a Thu Nov 27 17:46:15 2008 +0000 | |
|
55 | @@ -1,0 +1,1 @@ | |
|
56 | +b | |
|
57 | @@ -2,0 +3,1 @@ a | |
|
58 | +c |
General Comments 0
You need to be logged in to leave comments.
Login now