问题
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