capabilities.work

Find the merge base of two commits

One step with Atlassian. We can help you get access.

Look something up

Find the merge base of two commits

with Atlassian · Software Construction Management

Use Atlassian: its Atlassian Bitbucket Commits API lets you find the merge base 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?
  • How do I find the best common ancestor of two commits?
Say it to your AI assistant
  • Find the merge base for {revspec} in {workspace}/{repo_slug}.
  • Get the common ancestor commit of {revspec}.
For your developer

GET /repositories/{workspace}/{repo_slug}/merge-base/{revspec} in Atlassian Bitbucket Commits API. Full spec on APIs.io.