What is the difference between GetCommitsAsync and

2019-07-25 11:10发布

问题:

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()