What is the difference between GetCommitsAsync and

2019-07-25 10:31发布

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条回答
我想做一个坏孩纸
2楼-- · 2019-07-25 11:29

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": enter image description here Or from this link: getCommits() & getCommitsBatch()

查看更多
登录 后发表回答