File history
file_historyList commits that touched a given file, newest first, including hash, date, author, subject and line changes, while following renames across repository history.
Instructions
List the commits that touched one file, newest first: short hash, date, author, subject, and lines added/deleted per commit. Follows the file across renames (rename commits include a 'renamed_from' key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path relative to the repository root, e.g. 'src/app.py' (an absolute path inside the repository also works). | |
| limit | No | Maximum number of commits to return. | |
| repo_path | Yes | Absolute path to a local git repository, or to any folder inside one (a sub-folder scopes the analysis to it). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||