Returns metadata for a single commit. This endpoint does not compute or return the commit diff — useDocumentation Index
Fetch the complete documentation index at: https://code.storage/docs/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/repos/diff when you need file changes as well.
Parameters
Commit SHA to fetch metadata for. Any revision Git can resolve is accepted (full SHA, short SHA, branch name, tag).
JWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:readscope
Response
commit object has the same shape as entries in GET /api/v1/repos/commits.
Notes
dateis RFC 3339 (time.RFC3339in the gateway) and reflects the author date (%aIingit logformat).- Pass a branch name or tag as
shato resolve to that ref’s tip — useful for fetching the latest commit on a branch without paginatinglist-commits.
Error Responses
Commit (or repository) doesn’t exist
Invalid JWT or missing
git:read scopeMissing or empty
sha parameter