diff_compact
Generate a zero-context git diff of uncommitted or specific files, removing unchanged lines and index boilerplate to reduce token usage.
Instructions
Generate a zero-context (-U0) git diff of uncommitted changes or specific files, eliminating unchanged surrounding context lines and git index boilerplate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| staged | No | Whether to inspect staged changes only. | |
| filepath | No | Optional specific file path to diff. |