What is the difference between GetCommitsAsync and GetCommitsBatchAsync?

荒凉一梦 提交于 2020-01-15 09:08:52

问题


I am using methods from GitHttpClientBase class from Microsoft.TeamFoundation.SourceControl.WebApi namespace in Microsoft.TeamFoundationServer.Client package.

There are 2 similar methods for retrieving commits: GetCommitsAsync and GetCommitsBatchAsync. Do you know what is the difference? When each of them should be used?


回答1:


There isn't any difference between them. They both retrieve git commits for a project and use the same input parameters and return the same object, you can check this from "Object Browser": Or from this link: getCommits() & getCommitsBatch()



来源:https://stackoverflow.com/questions/39223313/what-is-the-difference-between-getcommitsasync-and-getcommitsbatchasync

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!