getDiffBetweenRefs
Compare two Git refs to retrieve file changes and patches. Optionally limit the diff to one file or get a file-level summary.
Instructions
Diff between two git refs (branches/tags/commits). statOnly for file-level summary only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref1 | Yes | Base ref (branch, tag, or commit hash) | |
| ref2 | Yes | Comparison ref (branch, tag, or commit hash) | |
| filePath | No | Limit diff to a single file (absolute or workspace-relative) | |
| context | No | Number of context lines around changes. Default: 3 | |
| statOnly | No | Return file-level stat summary only (no patch). Default: false. |