GitQueryCommitsCriteria interface

属性

$skip

要跳过的条目数

$top

要检索的最大条目数

author

作者的别名或显示名称

compareVersion

仅在指定 ItemVersion 时适用。 如果提供,请从此提交开始浏览历史记录。

excludeDeletes

仅在指定 itemPath 时适用。 这确定是否排除指定路径的删除条目。

fromCommitId

如果提供,则按字母顺序筛选提交的下限

fromDate

如果提供,则仅包括在此日期之后创建的历史记录条目 (字符串)

historyMode

应使用哪种 Git 历史记录模式。 这仅适用于 Ids = null 且指定 itemPath 时的搜索条件。

ids

如果提供,则指定要提取的提交的确切提交 ID。 不能与其他参数组合使用。

includeLinks

是否在浅表引用上包括_links字段

includePushData

是否包含推送信息

includeUserImageUrl

是否包括提交者和作者的图像 URL

includeWorkItems

是否包括链接的工作项

itemPath

要搜索的项的路径

itemVersion

如果提供,则标识要搜索的提交或分支

showOldestCommitsFirst

如果启用,此选项将忽略 itemVersion 和 compareVersion 参数

toCommitId

如果提供,则按字母顺序筛选提交的上限

toDate

如果提供,则仅包括在此日期之前创建的历史记录条目 (字符串)

user

提交者的别名或显示名称

属性详细信息

$skip

要跳过的条目数

$skip: number

属性值

number

$top

要检索的最大条目数

$top: number

属性值

number

author

作者的别名或显示名称

author: string

属性值

string

compareVersion

仅在指定 ItemVersion 时适用。 如果提供,请从此提交开始浏览历史记录。

compareVersion: GitVersionDescriptor

属性值

excludeDeletes

仅在指定 itemPath 时适用。 这确定是否排除指定路径的删除条目。

excludeDeletes: boolean

属性值

boolean

fromCommitId

如果提供,则按字母顺序筛选提交的下限

fromCommitId: string

属性值

string

fromDate

如果提供,则仅包括在此日期之后创建的历史记录条目 (字符串)

fromDate: string

属性值

string

historyMode

应使用哪种 Git 历史记录模式。 这仅适用于 Ids = null 且指定 itemPath 时的搜索条件。

historyMode: GitHistoryMode

属性值

ids

如果提供,则指定要提取的提交的确切提交 ID。 不能与其他参数组合使用。

ids: string[]

属性值

string[]

是否在浅表引用上包括_links字段

includeLinks: boolean

属性值

boolean

includePushData

是否包含推送信息

includePushData: boolean

属性值

boolean

includeUserImageUrl

是否包括提交者和作者的图像 URL

includeUserImageUrl: boolean

属性值

boolean

includeWorkItems

是否包括链接的工作项

includeWorkItems: boolean

属性值

boolean

itemPath

要搜索的项的路径

itemPath: string

属性值

string

itemVersion

如果提供,则标识要搜索的提交或分支

itemVersion: GitVersionDescriptor

属性值

showOldestCommitsFirst

如果启用,此选项将忽略 itemVersion 和 compareVersion 参数

showOldestCommitsFirst: boolean

属性值

boolean

toCommitId

如果提供,则按字母顺序筛选提交的上限

toCommitId: string

属性值

string

toDate

如果提供,则仅包括在此日期之前创建的历史记录条目 (字符串)

toDate: string

属性值

string

user

提交者的别名或显示名称

user: string

属性值

string