Find the common ancestor of two commits
One step with Bitbucket. We can help you get access.
Look something up
Find the common ancestor of two commits
with Bitbucket · Software Construction Management
Use Bitbucket: its Bitbucket Commits API lets you find the common ancestor of two commits in a single step (GET /repositories/{workspace}/{repo_slug}/merge-base/{revspec}). capabilities.work can help you get signed up and connected.
- Where did these two branches diverge?
- What is the merge base of two commits?
Say it to your AI assistant
- Find the merge base for {revspec} in {workspace}/{repo_slug}.
- Get the best common ancestor of {revspec}.
For your developer
GET /repositories/{workspace}/{repo_slug}/merge-base/{revspec} in Bitbucket Commits API. Full spec on APIs.io.