Commit e0b5261
committed
add-patch: update hunk splitability after editing
When the user edits a hunk if they change deletion lines to context
lines or vice versa then the number of hunks that the edited hunk
can be split into may differ from the unedited hunk and so we need
to update hunk->splittable_into. In practice users are unlikely to
hit this bug as it is doubtful that a user who has edited a hunk will
split it afterwards.
Signed-off-by: Phillip Wood <[email protected]>1 parent 3be7c73 commit e0b5261
2 files changed
+37
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
| 1191 | + | |
1191 | 1192 | | |
| 1193 | + | |
1192 | 1194 | | |
1193 | 1195 | | |
1194 | | - | |
| 1196 | + | |
| 1197 | + | |
1195 | 1198 | | |
1196 | 1199 | | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
1197 | 1203 | | |
1198 | 1204 | | |
1199 | 1205 | | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
1200 | 1209 | | |
1201 | 1210 | | |
1202 | 1211 | | |
1203 | 1212 | | |
| 1213 | + | |
1204 | 1214 | | |
1205 | 1215 | | |
1206 | 1216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
1243 | 1269 | | |
0 commit comments