git_commit_history
Retrieve and filter commit history for a specific Git repository branch, with options to limit results by author, date range, or message content.
Instructions
Get commit history for a branch with optional filtering.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
author | No | Filter by author (optional) | |
branch | No | The branch to get history from | main |
grep | No | Filter commits by message content (optional) | |
max_count | No | Maximum number of commits to retrieve | |
repo_url | Yes | The URL of the Git repository | |
since | No | Get commits after this date (e.g., "1 week ago", "2023-01-01") | |
until | No | Get commits before this date (e.g., "yesterday", "2023-12-31") |
Input Schema (JSON Schema)
{
"properties": {
"author": {
"description": "Filter by author (optional)",
"type": "string"
},
"branch": {
"default": "main",
"description": "The branch to get history from",
"type": "string"
},
"grep": {
"description": "Filter commits by message content (optional)",
"type": "string"
},
"max_count": {
"default": 10,
"description": "Maximum number of commits to retrieve",
"type": "integer"
},
"repo_url": {
"description": "The URL of the Git repository",
"type": "string"
},
"since": {
"description": "Get commits after this date (e.g., \"1 week ago\", \"2023-01-01\")",
"type": "string"
},
"until": {
"description": "Get commits before this date (e.g., \"yesterday\", \"2023-12-31\")",
"type": "string"
}
},
"required": [
"repo_url"
],
"type": "object"
}