enhanced_git_diff
Compare Git changes with customizable options: choose formats (unified, side-by-side, stat, word-diff), ignore whitespace, set context lines, and enable color output for clarity.
Instructions
Show git diff with multiple format options (unified, side-by-side, stat, word-diff)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
colorOutput | No | Enable color output | |
commit1 | No | First commit for comparison | |
commit2 | No | Second commit for comparison | |
contextLines | No | Number of context lines (default: 3) | |
cwd | No | Working directory | |
file | No | Specific file to diff | |
format | No | Diff format | |
ignoreWhitespace | No | Ignore whitespace changes | |
staged | No | Show staged changes |
Input Schema (JSON Schema)
{
"properties": {
"colorOutput": {
"description": "Enable color output",
"type": "boolean"
},
"commit1": {
"description": "First commit for comparison",
"type": "string"
},
"commit2": {
"description": "Second commit for comparison",
"type": "string"
},
"contextLines": {
"description": "Number of context lines (default: 3)",
"type": "number"
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"file": {
"description": "Specific file to diff",
"type": "string"
},
"format": {
"description": "Diff format",
"enum": [
"unified",
"side-by-side",
"inline",
"stat",
"name-only",
"word-diff"
],
"type": "string"
},
"ignoreWhitespace": {
"description": "Ignore whitespace changes",
"type": "boolean"
},
"staged": {
"description": "Show staged changes",
"type": "boolean"
}
},
"type": "object"
}