code_history
Explain code evolution using git history: recent commits, churn stats, and blame for any file or line range.
Instructions
Explain WHY code looks the way it does using git: recent commits touching a file, churn stats (commit count, authors, age), and optional line-range blame.
Provide start_line/end_line to get blame for a specific region. Requires the
repo to be a git checkout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Repo-relative file path. | |
| start_line | No | Start line for blame (optional). | |
| end_line | No | End line for blame (optional). | |
| max_commits | No | How many recent commits to list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |