Dulwich: How to detect fast-forward?
-
29-06-2021 - |
Pergunta
As the title suggests, namely, how can I know if the remote branch is an ancestor of local branch and vice versa?
Solução
Browse the ancestry of the local branch and see if you encounter the remote branch tip.
You can browse the local branch ancestry with the graph walker (see Repo.get_walker()
).
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow