enhanced_git_diff
View git diffs in multiple formats including side-by-side, word-diff, and stat. Customize context lines, ignore whitespace, compare specific commits or files, and enable colored output for clearer code change analysis.
Instructions
Show git diff with multiple format options (unified, side-by-side, stat, word-diff)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| staged | No | Show staged changes | |
| file | No | Specific file to diff | |
| format | No | Diff format | |
| contextLines | No | Number of context lines (default: 3) | |
| ignoreWhitespace | No | Ignore whitespace changes | |
| colorOutput | No | Enable color output | |
| commit1 | No | First commit for comparison | |
| commit2 | No | Second commit for comparison | |
| cwd | No | Working directory |