ssh_git_diff
Show git diff on a remote server. Compare working tree, staged changes, or against a git reference, optionally limited to a specific path or host.
Instructions
Show git diff on the remote server.
Args: cwd: Path to the git repository. Defaults to host's default_cwd. ref: Git ref to diff against (e.g., "HEAD~1", "main", a commit hash). Empty for working tree diff. path: Limit diff to a specific file or directory. staged: If true, show staged changes (--cached). host: SSH host alias from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| ref | No | ||
| path | No | ||
| staged | No | ||
| host | No |