public async Task DownloadItemAndContentInCommitAsync(ItemChange change, string commitId, Guid repositoryId, CancellationToken token) { CreateHttpClient(); var item = await _httpClient.GetItemAsync( repositoryId, change.Item.Path, includeContentMetadata : true, versionDescriptor : new Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor() { VersionType = Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionType.Commit, Version = commitId }, cancellationToken : token ); change.Item.ContentMetadata = item.ContentMetadata.ToSync(); if (!item.IsFolder) { var content = await _httpClient.GetBlobContentAsync(repositoryId, item.ObjectId, cancellationToken : token); await change.SetNewContentAsync(content, token); } }