The following StackOverflow entry explains how to get the latest content of a textual file from GitHub.com, by using libgit2sharp: How to get file's contents on Git using LibGit2Sharp?
But I need to input a date-time of perhaps a month ago, and get back the content as it was on that date-time. I thought I had a solution, but it fails before getting far enough:
// This C# fails after returning a few entries. After 10 minutes says out of memory.
IEnumerable<LogEntry> enumbLogEntries_LogEntry_qb = repo.Commits
.QueryBy("articles/sql-database/sql-database-get-started.md");
foreach (LogEntry logEntry in enumbLogEntries_LogEntry_qb)
{
Console.WriteLine(logEntry.Commit.Committer.When); // Date.
// I hope to use logEntry.Target to get the blob of content, I think.
}
I am also trying with Octokit for .NET, but again I can only get the latest content. Any solution would be appreciated. I confess that heavy GIT terminology can make answer unintelligible to me.