git_log
Analyze commit history with filters for author, date range, file path, and branch. Get commit stats and one-line summaries to understand code evolution.
Instructions
Analyze commit history with filtering and statistics. Provides insights into commit patterns, contributors, and code evolution.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repoPath": "<repoPath>"
},
"name": "git_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoPath | Yes | Absolute path to the git repository | |
| maxCount | No | Maximum number of commits to show (default: 20) | |
| author | No | Filter commits by author name or email | |
| since | No | Show commits more recent than date (e.g., '2024-01-01', '1 week ago') | |
| until | No | Show commits older than date | |
| filePath | No | Show commits affecting specific file or directory | |
| branch | No | Branch to log (default: current branch) | |
| oneline | No | Show commits in one-line format | |
| stat | No | Include file change statistics |