list_commits
Retrieve commit history for a Git repository branch or reference to track changes, view author details, and examine timestamps.
Instructions
List the commit history for a specific branch or reference.
Retrieves a list of commits starting from the specified branch (or HEAD),
going back in history up to limit. Each commit includes:
SHA (full and short)
Message
Author details
Timestamp
Args: repo_path: The absolute path to the repository. branch: The branch name, tag, or commit SHA to start listing from. Defaults to "HEAD" (current checkout). limit: The maximum number of commits to return. Defaults to 50.
Returns: A JSON-formatted string containing a list of commit objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| branch | No | HEAD | |
| limit | No |