Provides properties that describe a Git commit and associated metadata.

interface GitCommitRef {
    _links?: any;
    author?: GitUserDate;
    changeCounts?: ChangeCountDictionary;
    changes?: GitChange[];
    comment?: string;
    commentTruncated?: boolean;
    commitId?: string;
    committer?: GitUserDate;
    commitTooManyChanges?: boolean;
    parents?: string[];
    push?: GitPushRef;
    remoteUrl?: string;
    statuses?: GitStatus[];
    url?: string;
    workItems?: ResourceRef[];
}

Hierarchy (View Summary)

Properties

_links?: any

A collection of related REST reference links.

author?: GitUserDate

Author of the commit.

changeCounts?: ChangeCountDictionary

Counts of the types of changes (edits, deletes, etc.) included with the commit.

changes?: GitChange[]

An enumeration of the changes included with the commit.

comment?: string

Comment or message of the commit.

commentTruncated?: boolean

Indicates if the comment is truncated from the full Git commit comment message.

commitId?: string

ID (SHA-1) of the commit.

committer?: GitUserDate

Committer of the commit.

commitTooManyChanges?: boolean

Indicates that commit contains too many changes to be displayed

parents?: string[]

An enumeration of the parent commit IDs for this commit.

push?: GitPushRef

The push associated with this commit.

remoteUrl?: string

Remote URL path to the commit.

statuses?: GitStatus[]

A list of status metadata from services and extensions that may associate additional information to the commit.

url?: string

REST URL for this resource.

workItems?: ResourceRef[]

A list of workitems associated with this commit.