get_diff
Compare a file between two commits. Get the unified diff to see exactly what changed.
Instructions
Return the unified diff of one file between two commit hashes (typically obtained from get_history for the same file). Read-only; no side effects, auth, or rate limits. Order matters — commit_a is treated as the earlier side; reversing the args inverts the diff. Throws if either hash is unknown to the file's repo. Use after get_history to see WHAT changed, not just THAT it changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ID of the file | |
| commit_a | Yes | Earlier commit hash (from get_history) | |
| commit_b | Yes | Later commit hash (from get_history) |