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