ck_git_diff
Run CK validation on a git diff between two refs or staged changes to review modifications before committing; returns diff text and validation findings.
Instructions
Generate a git diff between two refs and run CK validation on the resulting diff. Read-only — no commits are created. base_ref and head_ref are git refs (branch names, commit SHAs, or tags); omit both to diff staged changes against HEAD. Returns the diff text and any CK validation findings raised against it. Use ck_git_diff to review changes before committing or submitting a review. Use ck_git_status for a summary without the full diff. Use ck_git_commit to create the commit after reviewing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_ref | No | Base git ref (commit, branch, or tag) for the diff. | |
| head_ref | No | Head git ref (commit, branch, or tag) for the diff. | |
| project_root | No | Absolute path to the project root directory on the local filesystem. | |
| session_id | No |