interface GitQueryCommitsCriteria {
    $skip?: number;
    $top?: number;
    author?: string;
    compareVersion?: GitVersionDescriptor;
    excludeDeletes?: boolean;
    fromCommitId?: string;
    fromDate?: string;
    historyMode?: GitHistoryMode;
    ids?: string[];
    includeLinks?: boolean;
    includePushData?: boolean;
    includeUserImageUrl?: boolean;
    includeWorkItems?: boolean;
    itemPath?: string;
    itemVersion?: GitVersionDescriptor;
    showOldestCommitsFirst?: boolean;
    toCommitId?: string;
    toDate?: string;
    user?: string;
}

Properties

$skip?: number

Number of entries to skip

$top?: number

Maximum number of entries to retrieve

author?: string

Alias or display name of the author

compareVersion?: GitVersionDescriptor

Only applicable when ItemVersion specified. If provided, start walking history starting at this commit.

excludeDeletes?: boolean

Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path.

fromCommitId?: string

If provided, a lower bound for filtering commits alphabetically

fromDate?: string

If provided, only include history entries created after this date (string)

historyMode?: GitHistoryMode

What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified.

ids?: string[]

If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters.

includeLinks?: boolean

Whether to include the _links field on the shallow references

includePushData?: boolean

Whether to include the push information

includeUserImageUrl?: boolean

Whether to include the image Url for committers and authors

includeWorkItems?: boolean

Whether to include linked work items

itemPath?: string

Path of item to search under

itemVersion?: GitVersionDescriptor

If provided, identifies the commit or branch to search

showOldestCommitsFirst?: boolean

If enabled, this option will ignore the itemVersion and compareVersion parameters

toCommitId?: string

If provided, an upper bound for filtering commits alphabetically

toDate?: string

If provided, only include history entries created before this date (string)

user?: string

Alias or display name of the committer