get_branch_diffs
Compare two GitLab branches or commits to retrieve their code changes and diffs. Specify base and target refs, with optional file exclusions, to review differences and identify modifications.
Instructions
Get the changes/diffs between two branches or commits in a GitLab project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The target branch or commit SHA to compare to | |
| from | Yes | The base branch or commit SHA to compare from | |
| straight | No | Comparison method: false for '...' (default), true for '--' | |
| project_id | No | Project ID or complete URL-encoded path to project | |
| excluded_file_patterns | No | Array of regex patterns to exclude files from the diff results. Each pattern is a JavaScript-compatible regular expression that matches file paths to ignore. Examples: ["^vendor/", "^test/mocks/", "\.spec\.ts$", "package-lock\.json"] |