Git Log
git_logRetrieve Git commit history filtered by author, date, file path, or message pattern. View logs with optional statistics, diffs, and pagination support.
Instructions
View commit history with optional filtering by author, date range, file path, or commit message pattern.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the Git repository. Defaults to session working directory set via git_set_working_dir. | . |
| maxCount | No | Maximum number of items to return (1-1000). | |
| skip | No | Number of items to skip for pagination. | |
| since | No | Show commits more recent than a specific date (ISO 8601 format). | |
| until | No | Show commits older than a specific date (ISO 8601 format). | |
| author | No | Filter commits by author name or email pattern. | |
| grep | No | Filter commits by message pattern (regex supported). | |
| branch | No | Show commits from a specific branch or ref (defaults to current branch). | |
| filePath | No | Show commits that affected a specific file path. | |
| oneline | No | Abbreviated output: return only hash, shortHash, and subject per commit. Significantly reduces response size. | |
| stat | No | Include file change statistics for each commit. | |
| patch | No | Include the full diff patch for each commit. | |
| showSignature | No | Show GPG signature verification information for each commit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Indicates if the operation was successful. | |
| commits | Yes | Array of commit objects. | |
| totalCount | Yes | Total number of commits returned (may be limited by maxCount). |