The results of `Repository.merge_analysis` indicate the merge opportunities.
| 745 | |
| 746 | |
| 747 | class MergeAnalysis(IntFlag): |
| 748 | """The results of `Repository.merge_analysis` indicate the merge opportunities.""" |
| 749 | |
| 750 | NONE = _pygit2.GIT_MERGE_ANALYSIS_NONE |
| 751 | 'No merge is possible. (Unused.)' |
| 752 | |
| 753 | NORMAL = _pygit2.GIT_MERGE_ANALYSIS_NORMAL |
| 754 | """ |
| 755 | A "normal" merge; both HEAD and the given merge input have diverged |
| 756 | from their common ancestor. The divergent commits must be merged. |
| 757 | """ |
| 758 | |
| 759 | UP_TO_DATE = _pygit2.GIT_MERGE_ANALYSIS_UP_TO_DATE |
| 760 | """ |
| 761 | All given merge inputs are reachable from HEAD, meaning the |
| 762 | repository is up-to-date and no merge needs to be performed. |
| 763 | """ |
| 764 | |
| 765 | FASTFORWARD = _pygit2.GIT_MERGE_ANALYSIS_FASTFORWARD |
| 766 | """ |
| 767 | The given merge input is a fast-forward from HEAD and no merge |
| 768 | needs to be performed. Instead, the client can check out the |
| 769 | given merge input. |
| 770 | """ |
| 771 | |
| 772 | UNBORN = _pygit2.GIT_MERGE_ANALYSIS_UNBORN |
| 773 | """ |
| 774 | The HEAD of the current repository is "unborn" and does not point to |
| 775 | a valid commit. No merge can be performed, but the caller may wish |
| 776 | to simply set HEAD to the target commit(s). |
| 777 | """ |
| 778 | |
| 779 | |
| 780 | class MergeFavor(IntEnum): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…