git_diff
Compare code changes across commits, branches, or working directory, providing detailed diff analysis and file categorization.
Instructions
Analyze code changes between commits, branches, or working directory. Provides detailed diff analysis with statistics and file categorization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoPath | Yes | Absolute path to the git repository | |
| target | No | Target to diff against (commit hash, branch name, or 'HEAD'). If omitted, shows uncommitted changes. | |
| source | No | Source to diff from (commit hash, branch name). If omitted with target, diffs target against working directory. | |
| filePath | No | Specific file or directory path to diff (relative to repo root) | |
| staged | No | Show staged changes only (git diff --cached) |