Git Show
git_showInspect commits, trees, blobs, and tags to view metadata, file contents, and diffs for detailed git repository analysis.
Instructions
Show details of a git object (commit, tree, blob, or tag). Displays commit information and the diff of changes introduced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the Git repository. Defaults to session working directory set via git_set_working_dir. | . |
| object | Yes | Git object to show (commit hash, branch, tag, tree, or blob). | |
| format | No | Output format for the git object. | |
| stat | No | Show diffstat instead of full diff. | |
| filePath | No | View specific file at a given commit reference. When provided, shows the file content from the specified object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Indicates if the operation was successful. | |
| object | Yes | Object identifier. | |
| type | Yes | Type of git object shown. | |
| content | Yes | Formatted output showing the object details. | |
| metadata | No | Additional metadata about the object. |