git_compare_branches
Compare two Git branches to identify unique commits, their common ancestor, and differing files; optionally include the full diff for detailed review.
Instructions
Compare two Git branches showing unique commits in each branch, common ancestor, and files that differ. Optionally show full diff.
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": {
"path": "<path>",
"branch1": "<branch1>",
"branch2": "<branch2>"
},
"name": "git_compare_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root path of the git repository | |
| branch1 | Yes | First branch name to compare | |
| branch2 | Yes | Second branch name to compare | |
| showDiff | No | Include full diff between branches (default: false) |