Commit 0ce02b3
committed
rerere: split code to call ll_merge() further
The merge() helper function is given an existing rerere ID (i.e. the
name of the .git/rr-cache/* subdirectory, and the variant number)
that identifies one <preimage, postimage> pair, try to see if the
conflicted state in the given path can be resolved by using the pair,
and if this succeeds, then update the conflicted path with the
result in the working tree.
To implement rerere_forget() in the multiple variant world, we'd
need a helper to do the "see if a <preimage, postimage> pair cleanly
resolves a conflicted state we have in-core" part, without actually
touching any file in the working tree, in order to identify which
variant(s) to remove. Split the logic to do so into a separate
helper function try_merge() out of merge().
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 3d730ed commit 0ce02b3
1 file changed
+31
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
624 | 651 | | |
625 | 652 | | |
626 | 653 | | |
| |||
635 | 662 | | |
636 | 663 | | |
637 | 664 | | |
638 | | - | |
| 665 | + | |
639 | 666 | | |
640 | 667 | | |
641 | 668 | | |
642 | 669 | | |
643 | 670 | | |
644 | 671 | | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
| 672 | + | |
| 673 | + | |
653 | 674 | | |
654 | 675 | | |
655 | 676 | | |
656 | 677 | | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
| 678 | + | |
662 | 679 | | |
663 | 680 | | |
664 | 681 | | |
| |||
684 | 701 | | |
685 | 702 | | |
686 | 703 | | |
687 | | - | |
688 | | - | |
689 | 704 | | |
690 | 705 | | |
691 | 706 | | |
| |||
0 commit comments