Git log
git_logRetrieve structured Git commit history with hash, author, date, and message; filter by ref range, author, path, date, or exclusion pattern for parseable results.
Instructions
Structured git log: commit hash, author, date, message. Compact and parseable. Use range for ref comparisons (e.g. 'main..feature'). Use exclude to filter out commits matching a pattern (e.g. 'ci:').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository path | |
| path | No | Filter by file path | |
| count | No | Number of commits (default 20) | |
| range | No | Git ref range (e.g. 'main..feature', 'HEAD~5..HEAD') | |
| since | No | Since date (e.g. '2024-01-01') | |
| author | No | Filter by author | |
| exclude | No | Exclude commits matching this grep pattern (uses --invert-grep) | |
| withFiles | No | Include list of files changed per commit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| commits | Yes | ||
| retained | No |