Function readCommit

  • Read a commit object directly.

    Returns

    Resolves successfully with a git commit object.

    Example

    // Read a commit object
    const sha = await resolveRef({ fs, dir: '/tutorial', ref: 'main' })
    console.log(sha)
    const commit = await readCommit({ fs, dir: '/tutorial', oid: sha })
    console.log(commit)

    Parameters

    Returns Promise<ReadCommitResult>

Generated using TypeDoc