【发布时间】:2016-06-14 07:14:40
【问题描述】:
我正在尝试使用 Team Service REST API (https://www.visualstudio.com/en-us/docs/integrate/api/git/commits) 在我的 git 存储库的一个特定分支中获取一个特定项目的历史记录。
我的存储库中有这个结构。
Repository1
-- Branch1
-- Item1
-- Item2
-- Branch2
-- Item1
-- Item3
如何在 Branch1 中仅获取 Item1 的提交?
使用 JSON:
{
"itemVersion": {
"versionType": "branch",
"version": "Branch1"
}
}
但这给了我整个分支的提交。我如何才能获得该特定分支中该项目的提交?
【问题讨论】:
标签: git rest tfs azure-devops tfs-2015