Interface CommitWithChanges

Representation of a Git commit, plus the changes that were performed in that particular commit.

interface CommitWithChanges {
    author: CommitIdentity;
    authorDateRelative: string;
    body?: string;
    fileChanges: GitFileChange[];
    parentSHAs?: string[];
    sha: string;
    summary: string;
}

Hierarchy (view full)

Properties

Information about the author of this commit. It includes name, email and date.

authorDateRelative: string

The date when the commit was authored (ISO format).

body?: string

The commit message without the first line and CR.

fileChanges: GitFileChange[]

The file changes in the commit.

parentSHAs?: string[]

The SHAs for the parents of the commit.

sha: string

The commit SHA.

summary: string

The first line of the commit message.