Azure devops GitHttpClient获取ref/tag的提交
我想使用WebApi和Azure devops GitHttpClient获取ref/tag的提交,azure-devops,Azure Devops,我想使用WebApi和GitHttpClient查找一些Git标记,并标识一些标记对之间的提交 我通过使用gitClient.GetRefsAsync(gitreepository.Id)获得了标记,但我不知道如何获得标记指向的提交 换句话说,我不知道如何从GitRef对象获取提交Id 调用GetRefsAsync时,需要设置:peelTags:true。然后,提交Id将作为GitRef对象的PeeledObjectId属性返回
GitHttpClient
查找一些Git标记,并标识一些标记对之间的提交
我通过使用gitClient.GetRefsAsync(gitreepository.Id)
获得了标记,但我不知道如何获得标记指向的提交
换句话说,我不知道如何从GitRef
对象获取提交Id
调用
GetRefsAsync
时,需要设置:peelTags:true
。然后,提交Id将作为GitRef
对象的PeeledObjectId
属性返回