show
View detailed commit information and changes in a Git repository. Specify format, paths, or file status to customize output.
Instructions
Display commit details and changes.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
commit | No | Commit hash, branch, or tag to show (defaults to HEAD) | |
format | No | Pretty-print format for commit | |
nameOnly | No | Show only names of changed files (--name-only) | |
nameStatus | No | Show names and status of changed files (--name-status) | |
pathspec | No | Limit show to specific paths | |
repoPath | Yes | Absolute path to the git repository | |
stat | No | Show diffstat (--stat) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"commit": {
"description": "Commit hash, branch, or tag to show (defaults to HEAD)",
"type": "string"
},
"format": {
"description": "Pretty-print format for commit",
"enum": [
"oneline",
"short",
"medium",
"full",
"fuller",
"email",
"raw"
],
"type": "string"
},
"nameOnly": {
"description": "Show only names of changed files (--name-only)",
"type": "boolean"
},
"nameStatus": {
"description": "Show names and status of changed files (--name-status)",
"type": "boolean"
},
"pathspec": {
"description": "Limit show to specific paths",
"items": {
"type": "string"
},
"type": "array"
},
"repoPath": {
"description": "Absolute path to the git repository",
"type": "string"
},
"stat": {
"description": "Show diffstat (--stat)",
"type": "boolean"
}
},
"required": [
"repoPath"
],
"type": "object"
}