ck_git_diff
Generate a validated git diff between two refs or against HEAD, returning diff text and ControlKeel validation findings for pre-commit review.
Instructions
Generate a git diff 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 or pass empty strings to diff the working tree 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 |