git-log
Retrieve recent git commit history for a specified directory, allowing users to define the number of commits to display. Supports error handling for non-git directories and provides a default limit of 10 commits.
Instructions
Get recent git commit history
Input Schema
Name | Required | Description | Default |
---|---|---|---|
count | No | Number of recent commits to show (default: 10) | |
directory | No | Directory path to check git log (defaults to current directory) |
Input Schema (JSON Schema)
{
"properties": {
"count": {
"default": 10,
"description": "Number of recent commits to show (default: 10)",
"type": "number"
},
"directory": {
"description": "Directory path to check git log (defaults to current directory)",
"type": "string"
}
},
"type": "object"
}