compare_commits
Compare two refs (branch, tag, or SHA) in a GitLab project to see commit differences and file changes. Understand branch divergence before merging.
Instructions
Compare two refs (branch/tag/sha) in a project.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"from_ref": "<from_ref>",
"to_ref": "<to_ref>"
},
"name": "compare_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_ref | Yes | ||
| project | Yes | ||
| from_ref | Yes | ||
| straight | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||