git_diff
Inspect Git working-tree or staged changes without executing shell commands, optionally limiting output to specific repository paths and returning only statistics.
Instructions
Read the Git working-tree or staged diff without running a shell command, optionally limited to specific paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Git repository directory; defaults to the workspace. | |
| paths | No | Limit the diff to these repository paths. | |
| staged | No | Read the staged diff instead of the working-tree diff. | |
| max_bytes | No | Maximum diff bytes. | |
| stat_only | No | Return only diff statistics. | |
| context_lines | No | Lines of context around each hunk. |