get_file_blame
Get git blame information for a file, returning commit details (id, author, date, message) for each line or specified line range.
Instructions
Get git blame for a file at a given ref. Each entry maps a contiguous range of source lines to the commit that last changed them (id, author, authored_date, message). Use range_start/range_end to limit blame to specific lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID or complete URL-encoded path to project | |
| file_path | Yes | The full path of the file to blame, relative to repo root | |
| ref | Yes | The name of branch, tag or commit (required by GitLab blame API) | |
| range_start | No | First line of the blame range (inclusive, 1-based). Both range[start] and range[end] must be set together. | |
| range_end | No | Last line of the blame range (inclusive, 1-based). Both range[start] and range[end] must be set together. |