compare_commits
Compare two Git commits with detailed analysis. Specify commit references, filter by file pattern, and choose output format (unified, stat, or name-only) to review code changes between any two points in your repository.
Instructions
Compare two commits with detailed analysis
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": {
"commit1": "<commit1>",
"commit2": "<commit2>"
},
"name": "compare_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit1 | Yes | First commit hash or reference | |
| commit2 | Yes | Second commit hash or reference | |
| filePattern | No | File pattern to filter | |
| format | No | Output format | |
| cwd | No | Working directory |