Commit 1878421
committed
add-patch: update hunk splitability after editing
When the users 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 0394451 commit 1878421
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
| 1184 | + | |
1184 | 1185 | | |
| 1186 | + | |
1185 | 1187 | | |
1186 | 1188 | | |
1187 | | - | |
| 1189 | + | |
| 1190 | + | |
1188 | 1191 | | |
1189 | 1192 | | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
1190 | 1196 | | |
1191 | 1197 | | |
1192 | 1198 | | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1193 | 1202 | | |
1194 | 1203 | | |
1195 | 1204 | | |
1196 | 1205 | | |
| 1206 | + | |
1197 | 1207 | | |
1198 | 1208 | | |
1199 | 1209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1230 | 1230 | | |
1231 | 1231 | | |
1232 | 1232 | | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
1233 | 1254 | | |
0 commit comments