Skip to content

Commit fb50732

Browse files
committed
Add example for new line
1 parent fffa3cc commit fb50732

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

gitdiff/testdata/apply/file_text_modify.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,4 @@ this is line 196
192192
this is line 197
193193
this is line 198
194194
this is line 199
195-
this is line 200
195+
this is line 200

gitdiff/testdata/apply/file_text_modify.patch

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ diff --git a/gitdiff/testdata/apply/file_text.src b/gitdiff/testdata/apply/file_
77
this is line 2
88
this is line 3
99
this is line 4
10-
@@ -17,10 +17,10 @@ this is line 16
10+
@@ -17,10 +17,10 @@
1111
this is line 17
1212
this is line 18
1313
this is line 19
@@ -20,7 +20,7 @@ diff --git a/gitdiff/testdata/apply/file_text.src b/gitdiff/testdata/apply/file_
2020
this is line 24
2121
this is line 25
2222
this is line 26
23-
@@ -53,10 +53,10 @@ this is line 52
23+
@@ -53,10 +53,10 @@
2424
this is line 53
2525
this is line 54
2626
this is line 55
@@ -35,7 +35,7 @@ diff --git a/gitdiff/testdata/apply/file_text.src b/gitdiff/testdata/apply/file_
3535
this is line 60
3636
this is line 61
3737
this is line 62
38-
@@ -130,8 +130,8 @@ this is line 129
38+
@@ -130,8 +130,8 @@
3939
this is line 130
4040
this is line 131
4141
this is line 132
@@ -46,7 +46,7 @@ diff --git a/gitdiff/testdata/apply/file_text.src b/gitdiff/testdata/apply/file_
4646
this is line 135
4747
this is line 136
4848
this is line 137
49-
@@ -161,12 +161,7 @@ this is line 160
49+
@@ -161,12 +161,7 @@
5050
this is line 161
5151
this is line 162
5252
this is line 163
@@ -60,3 +60,10 @@ diff --git a/gitdiff/testdata/apply/file_text.src b/gitdiff/testdata/apply/file_
6060
this is line 170
6161
this is line 171
6262
this is line 172
63+
@@ -197,4 +192,4 @@
64+
this is line 197
65+
this is line 198
66+
this is line 199
67+
-this is line 200
68+
+this is line 200
69+
\ No newline at end of file

0 commit comments

Comments
 (0)