git_diff
Compare code changes between commits, working directory, and staging area to track modifications and review differences in your development workflow.
Instructions
Show changes between commits, working tree, and staging area
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository directory | |
| cached | No | Show staged changes | |
| files | No | Specific file(s) to diff | |
| commit | No | Compare against specific commit/branch |
Input Schema (JSON Schema)
{
"properties": {
"cached": {
"default": false,
"description": "Show staged changes",
"type": "boolean"
},
"commit": {
"description": "Compare against specific commit/branch",
"type": "string"
},
"cwd": {
"description": "Repository directory",
"type": "string"
},
"files": {
"description": "Specific file(s) to diff",
"type": "string"
}
},
"type": "object"
}