compare_refs
Compare two Git refs and retrieve commits present in the target but missing from the source. Allows pagination and custom field selection.
Instructions
Compare two refs and list commits accessible from to but not from from. Supports custom field selection via the fields param ('*all' for full raw response, 'id,message,author.name' for a custom subset).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target ref (commits reachable from here are included). | |
| from | No | Source ref (commits reachable from here are excluded). | |
| limit | No | Number of commits to return (default: 25, max: 1000). | |
| start | No | Start index for pagination (default: 0). | |
| fields | No | Comma-separated fields to return (dot notation for nested paths). Omit for a curated default; use '*all' for the full raw API response. | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| repository | Yes | Repository slug. |