git_blame
Identify which commit last touched each line of a file. Use to trace regressions, find authors, and understand file evolution.
Instructions
Render per-line attribution for a tracked file, optionally restricted to a line range, showing which commit last touched each line. Use this when investigating who changed a line or when a regression was introduced, and to trace how a file evolved. Best for: finding which commit last touched each line of a file. Returns: a line count summary 'Blame for : lines' followed by git blame output with commit hashes, authors and line content; start_line and end_line must be provided together and the file must be tracked by git. Does NOT show current file content or whole-history log — use git_show or git_log for context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File to annotate; must not start with '-' | |
| end_line | No | Last line to annotate | |
| repo_path | No | Path to the git repository, defaults to '.' (the server working directory) | . |
| start_line | No | First line to annotate |