compare_commits
Compare two commits to analyze differences in code, filter by file patterns, and generate output in unified, stat, or name-only formats.
Instructions
Compare two commits with detailed analysis
Input Schema
Name | Required | Description | Default |
---|---|---|---|
commit1 | Yes | First commit hash or reference | |
commit2 | Yes | Second commit hash or reference | |
cwd | No | Working directory | |
filePattern | No | File pattern to filter | |
format | No | Output format |
Input Schema (JSON Schema)
{
"properties": {
"commit1": {
"description": "First commit hash or reference",
"type": "string"
},
"commit2": {
"description": "Second commit hash or reference",
"type": "string"
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"filePattern": {
"description": "File pattern to filter",
"type": "string"
},
"format": {
"description": "Output format",
"enum": [
"unified",
"stat",
"name-only"
],
"type": "string"
}
},
"required": [
"commit1",
"commit2"
],
"type": "object"
}