Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はpygit2(pythonのlibgit2ラッパー)を使用し、マージコミットを作成する前に、つまり2つの親でコミットする前に、GitHubのようなドライランチェックを実行して、ブランチが実際に自動マージできることを確認したいと思います。
明らかなアプローチは、分岐点以降のすべてのコミットをループし、競合がないか行ごとにチェックすることです。しかし、私は(願っていますか?)もっと良いアプローチがあるかもしれないと思います。