Skip to main content

Documentation Index

Fetch the complete documentation index at: https://code.storage/docs/llms.txt

Use this file to discover all available pages before exploring further.

const { commit } = await repo.getCommit({
  sha: "abc123def456...",
});

console.log(commit.message);
console.log(`${commit.authorName} <${commit.authorEmail}>`);
console.log(commit.date.toISOString());

Options

sha
string
required
Commit SHA to fetch metadata for. Any revision Git can resolve is accepted (full SHA, short SHA, branch name, tag).

Response

commit
object
Commit metadata. Same shape as entries returned by listCommits():
  • sha
  • message
  • authorName, authorEmail
  • committerName, committerEmail
  • date (parsed Date in TypeScript, datetime in Python, time.Time in Go)
  • rawDate (RFC 3339 string as returned by the server)

Notes

  • This endpoint does not compute or return the commit diff. Use getCommitDiff() when you need file changes as well.
  • For listing many commits at once, prefer listCommits() — the per-commit shape is identical.