Commit b643355
merge: remove drop_save() in favor of remove_merge_branch_state()
Both remove_branch_state() and drop_save() delete almost the same set of
files about the current merge state. The only difference is MERGE_RR but
it should also be cleaned up after a successful merge, which is what
drop_save() is for.
Make a new function that deletes all merge-related state files and use
it instead of drop_save(). This function will also be used in the next
patch that introduces --quit.
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent aeb582a commit b643355
3 files changed
Lines changed: 19 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | | - | |
343 | | - | |
344 | 342 | | |
345 | 343 | | |
346 | 344 | | |
347 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
348 | 352 | | |
| 353 | + | |
349 | 354 | | |
350 | 355 | | |
351 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 283 | | |
291 | 284 | | |
292 | 285 | | |
| |||
380 | 373 | | |
381 | 374 | | |
382 | 375 | | |
383 | | - | |
| 376 | + | |
384 | 377 | | |
385 | 378 | | |
386 | 379 | | |
| |||
858 | 851 | | |
859 | 852 | | |
860 | 853 | | |
861 | | - | |
| 854 | + | |
862 | 855 | | |
863 | 856 | | |
864 | 857 | | |
| |||
885 | 878 | | |
886 | 879 | | |
887 | 880 | | |
888 | | - | |
| 881 | + | |
889 | 882 | | |
890 | 883 | | |
891 | 884 | | |
| |||
1463 | 1456 | | |
1464 | 1457 | | |
1465 | 1458 | | |
1466 | | - | |
| 1459 | + | |
1467 | 1460 | | |
1468 | 1461 | | |
1469 | 1462 | | |
| |||
0 commit comments