/** * A git commit. */ export interface Commit { /** * The commit SHA. */ readonly sha: string; /** * The first line of the commit message. */ readonly summary: string; /** * The commit message without the first line and CR. */ readonly body: string; /** * Information about the author of this commit. It includes name, email and date. */ readonly author: CommitIdentity; /** * The SHAs for the parents of the commit. */ readonly parentSHAs: ReadonlyArray; } /** * A tuple of name, email, and date for the author or commit * info in a commit. */ export interface CommitIdentity { /** * The name for the commit. */ readonly name: string; /** * The email address for the user who did the commit. */ readonly email: string; /** * The date of the commit. */ readonly date: Date; /** * The time-zone offest. */ readonly tzOffset: number; } export declare namespace CommitIdentity { /** * Parses a Git ident string (GIT_AUTHOR_IDENT or GIT_COMMITTER_IDENT) * into a commit identity. Returns `undefined` if string could not be parsed. */ function parseIdentity(identity: string): CommitIdentity | undefined; }