Recently I moved from TFVC to Git Version control. Up until now I have been getting the file items for a specific date using TfvcVersionDescriptor date type like this:
var version = new TfvcVersionDescriptor { VersionType = TfvcVersionType.Date, Version = date };
Is there any way to achieve this using GitHttpClient? I need to generate some trend analysis and getting the list of files for a specific date is very important. If there is no functionality to retrieve by date, is there a work around for this?
Use
GitHttpClient.GetCommitsAsyncwith aGitQueryCommitsCriteriaobject similar toIt will return a
List<GitCommitRef>withGitCommitRef.CommitId(SHA-1) to identify the commit.And then use
GitHttpClient.GetItemsAsyncor another variation withto get the files.