Skip to content

Commit fbe298a

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

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

gitdiff/testdata/apply/file_text_modify.out

+1-1
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

+16-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ 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+
\ No newline at end of file
11+
@@ -17,10 +17,10 @@
1112
this is line 17
1213
this is line 18
1314
this is line 19
@@ -20,7 +21,8 @@ diff --git a/gitdiff/testdata/apply/file_text.src b/gitdiff/testdata/apply/file_
2021
this is line 24
2122
this is line 25
2223
this is line 26
23-
@@ -53,10 +53,10 @@ this is line 52
24+
\ No newline at end of file
25+
@@ -53,10 +53,10 @@
2426
this is line 53
2527
this is line 54
2628
this is line 55
@@ -35,7 +37,8 @@ diff --git a/gitdiff/testdata/apply/file_text.src b/gitdiff/testdata/apply/file_
3537
this is line 60
3638
this is line 61
3739
this is line 62
38-
@@ -130,8 +130,8 @@ this is line 129
40+
\ No newline at end of file
41+
@@ -130,8 +130,8 @@
3942
this is line 130
4043
this is line 131
4144
this is line 132
@@ -46,7 +49,8 @@ diff --git a/gitdiff/testdata/apply/file_text.src b/gitdiff/testdata/apply/file_
4649
this is line 135
4750
this is line 136
4851
this is line 137
49-
@@ -161,12 +161,7 @@ this is line 160
52+
\ No newline at end of file
53+
@@ -161,12 +161,7 @@
5054
this is line 161
5155
this is line 162
5256
this is line 163
@@ -60,3 +64,11 @@ diff --git a/gitdiff/testdata/apply/file_text.src b/gitdiff/testdata/apply/file_
6064
this is line 170
6165
this is line 171
6266
this is line 172
67+
\ No newline at end of file
68+
@@ -197,4 +192,4 @@
69+
this is line 197
70+
this is line 198
71+
this is line 199
72+
-this is line 200
73+
+this is line 200
74+
\ No newline at end of file

0 commit comments

Comments
 (0)