git_blame
Retrieve blame information to identify the author and commit for each line in a file from a Git repository. Specify repository path, file path, and revision to analyze code changes.
Instructions
Get blame information for a file.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
file_path | Yes | Path to the file | |
repo_path | Yes | The path to the local Git repository | |
rev | No | Revision to blame (default: HEAD) | HEAD |
Input Schema (JSON Schema)
{
"properties": {
"file_path": {
"description": "Path to the file",
"type": "string"
},
"repo_path": {
"description": "The path to the local Git repository",
"type": "string"
},
"rev": {
"default": "HEAD",
"description": "Revision to blame (default: HEAD)",
"type": "string"
}
},
"required": [
"repo_path",
"file_path"
],
"type": "object"
}