diff
Compare changes between commits, branches, or files in a Git repository. Output differences by file name, status, or detailed changes, and filter by specific paths or staged modifications.
Instructions
Show differences between commits, branches, files.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
from | No | Source commit, branch, or tag (defaults to working directory) | |
nameOnly | No | Show only names of changed files (--name-only) | |
nameStatus | No | Show names and status of changed files (--name-status) | |
pathspec | No | Limit diff to specific paths | |
repoPath | Yes | Absolute path to the git repository | |
staged | No | Show staged changes (--cached) | |
stat | No | Show diffstat (--stat) | |
to | No | Target commit, branch, or tag (defaults to HEAD) |