git_diff
Retrieve differences between git working tree, index, HEAD, or two revisions. View as patch, stat, or name-status to review changes.
Instructions
Compare working tree, index, HEAD, or two revisions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| head | No | ||
| mode | No | working | |
| path | No | ||
| format | No | patch | |
| mergeBase | No | ||
| contextLine | No | Number of unchanged lines shown before and after each change in patch format. | |
| findRenames | No | Detect renamed files regardless of repository diff configuration. | |
| repositoryId | Yes | ID returned by git_list_repositories |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| output | Yes | ||
| truncated | Yes |