Read a commit object directly.
Resolves successfully with a git commit object.
// Read a commit objectconst sha = await resolveRef({ fs, dir: '/tutorial', ref: 'main' })console.log(sha)const commit = await readCommit({ fs, dir: '/tutorial', oid: sha })console.log(commit)
Generated using TypeDoc
Read a commit object directly.
Returns
Resolves successfully with a git commit object.
Example