Commit de9f7fa
commit: simplify building parents list
Push pptr down into the FROM_MERGE branch of the if/else statement,
where it's actually used, and call commit_list_append() for appending
elements instead of playing tricks with commit_list_insert(). Call
copy_commit_list() in the amend branch instead of open-coding it. Don't
bother setting pptr in the final branch as it's not used thereafter.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 0b65a8d commit de9f7fa
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1639 | 1639 | | |
1640 | 1640 | | |
1641 | 1641 | | |
1642 | | - | |
| 1642 | + | |
1643 | 1643 | | |
1644 | 1644 | | |
1645 | 1645 | | |
| |||
1681 | 1681 | | |
1682 | 1682 | | |
1683 | 1683 | | |
1684 | | - | |
1685 | | - | |
1686 | 1684 | | |
1687 | 1685 | | |
1688 | | - | |
1689 | | - | |
| 1686 | + | |
1690 | 1687 | | |
1691 | 1688 | | |
1692 | 1689 | | |
1693 | 1690 | | |
| 1691 | + | |
1694 | 1692 | | |
1695 | 1693 | | |
1696 | 1694 | | |
1697 | | - | |
| 1695 | + | |
1698 | 1696 | | |
1699 | 1697 | | |
1700 | 1698 | | |
| |||
1705 | 1703 | | |
1706 | 1704 | | |
1707 | 1705 | | |
1708 | | - | |
| 1706 | + | |
1709 | 1707 | | |
1710 | 1708 | | |
1711 | 1709 | | |
| |||
1722 | 1720 | | |
1723 | 1721 | | |
1724 | 1722 | | |
1725 | | - | |
| 1723 | + | |
1726 | 1724 | | |
1727 | 1725 | | |
1728 | 1726 | | |
| |||
0 commit comments