Commit 694a981
Merge branch 'js/am-3-merge-recursive-direct' into jch
The merge_recursive_generic() function has been made a bit safer to
call from inside a process. "git am -3" was taught to make a direct
call to the function when falling back to three-way merge.
Being able to make a direct call would be good in general, but as a
performance thing, the change needs to be backed up by numbers.
I haven't gone through the "gently" change with fine toothed comb;
I can see that the change avoids calling die(), but I haven't made
sure that the program states (e.g. what's in the in-core index) are
adjusted sensibly when it returns to the caller instead of dying,
or the codepaths that used to die() are free of resource leaks.
The original code certainly did not care the program states at the
point of dying exactly because it knew it is going to exit, but now
they have to care, and they need to be audited.
* js/am-3-merge-recursive-direct:
am: make a direct call to merge_recursive
merge_recursive_options: introduce the "gently" flag
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent df7abff commit 694a981
3 files changed
Lines changed: 51 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1588 | 1588 | | |
1589 | 1589 | | |
1590 | 1590 | | |
1591 | | - | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
1592 | 1595 | | |
1593 | 1596 | | |
1594 | | - | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
1595 | 1603 | | |
1596 | | - | |
1597 | | - | |
1598 | 1604 | | |
1599 | | - | |
| 1605 | + | |
1600 | 1606 | | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
| 1607 | + | |
| 1608 | + | |
1606 | 1609 | | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
1610 | 1610 | | |
1611 | 1611 | | |
1612 | 1612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
271 | 275 | | |
272 | 276 | | |
273 | 277 | | |
| |||
714 | 718 | | |
715 | 719 | | |
716 | 720 | | |
| 721 | + | |
| 722 | + | |
717 | 723 | | |
718 | 724 | | |
719 | 725 | | |
| |||
1342 | 1348 | | |
1343 | 1349 | | |
1344 | 1350 | | |
1345 | | - | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
1346 | 1354 | | |
| 1355 | + | |
1347 | 1356 | | |
1348 | 1357 | | |
1349 | 1358 | | |
| |||
1376 | 1385 | | |
1377 | 1386 | | |
1378 | 1387 | | |
1379 | | - | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1380 | 1391 | | |
| 1392 | + | |
1381 | 1393 | | |
1382 | 1394 | | |
1383 | 1395 | | |
| |||
1824 | 1836 | | |
1825 | 1837 | | |
1826 | 1838 | | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
1827 | 1846 | | |
1828 | 1847 | | |
1829 | 1848 | | |
| |||
1870 | 1889 | | |
1871 | 1890 | | |
1872 | 1891 | | |
1873 | | - | |
1874 | | - | |
| 1892 | + | |
| 1893 | + | |
1875 | 1894 | | |
1876 | 1895 | | |
1877 | 1896 | | |
| |||
1946 | 1965 | | |
1947 | 1966 | | |
1948 | 1967 | | |
1949 | | - | |
1950 | | - | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
1951 | 1971 | | |
1952 | 1972 | | |
1953 | 1973 | | |
1954 | 1974 | | |
1955 | | - | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
1956 | 1978 | | |
| 1979 | + | |
1957 | 1980 | | |
1958 | 1981 | | |
1959 | 1982 | | |
| |||
1963 | 1986 | | |
1964 | 1987 | | |
1965 | 1988 | | |
| 1989 | + | |
| 1990 | + | |
1966 | 1991 | | |
1967 | 1992 | | |
1968 | 1993 | | |
| |||
2019 | 2044 | | |
2020 | 2045 | | |
2021 | 2046 | | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
2022 | 2050 | | |
2023 | 2051 | | |
2024 | 2052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments