repo_compare
Returns the diff between two refs without truncation: by default from the merge base of from and to, as in an MR; straight compares with from directly (e.g. a previous review's sha). Patch lines carry new-version line numbers; pages are up to 153600 bytes (next page: offset = nextOffset until null), and a file that does not fit comes with error plus baseSha and toSha.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Ref to compare: task branch, tag or sha. | |
| from | No | Base: branch, tag or sha; defaults to the default branch. | |
| path | No | Directory prefix or file glob. | |
| offset | No | Page offset: nextOffset of the previous response. | |
| context | No | Context lines in the patch; default 3. | |
| straight | No | Compare with from directly, not with the merge base. | |
| extensions | No | File extensions without the dot. | |
| lineNumbers | No | New-version line numbers; default true. | |
| repositoryID | Yes | Repository ID. |