我正在嘗試使用Team Service REST API(https://www.visualstudio.com/en-us/docs/integrate/api/git/commits)獲取我的git存儲庫中某個特定分支中某個特定項目的歷史記錄。使用TFS REST API獲取一個項目在一個分支中的提交
我在我的資源庫中有這個結構。
Repository1 -- Branch1 -- Item1 -- Item2 -- Branch2 -- Item1 -- Item3
我怎樣才能在Branch1的只是項目1的提交?
與JSON:
{ "itemVersion": { "versionType": "branch", "version": "Branch1" } }
但是,這讓我對整個分支的提交。我如何才能獲得該特定分支中該項目的提交?
隨意如果您想要投票,請投票:https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/14807604-git-rest-api-possibility-to-get-commits-for-one-p – aengas