Skip to content

Conversation

Werkov
Copy link

@Werkov Werkov commented Jul 4, 2024

I inadvertently passed a base commit that was not an ancestory of head and exploded branch could not be cherry-picked cleanly on top of base (because of head..base changes).

pygit2 does not have an equivalent of git merge-base --is-ancestor, so use the closes approximation by comparing merge base to base. (Hopefully, the "base" is picked by merge_base function when there are multiple merge bases possible so that this ancestor check is corect.)

I inadvertently passed a base commit that was not an ancestory of head
and exploded branch could not be cherry-picked cleanly on top of base
(because of head..base changes).

pygit2 does not have an equivalent of `git merge-base --is-ancestor`, so
use the closes approximation by comparing merge base to base.
(Hopefully, the "base" is picked by merge_base function when there are
multiple merge bases possible so that this ancestor check is corect.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant