I must be missing something obvious, because GitHub web interface does that on the Code tab.
I am looking for an API call that would either give me list of files with reference to the last commit that they were modified with, or, list of commits with files they modified. (If it is of any relevance, the repo I am dealing with at the moment has over 4000 tiny files, and each commit modifies one file only.)
Using Octokit, I can get list of all files using
GitHubClient.Repository.Content.GetAllContents, or using
GitHubClient.Git.Tree.GetRecursive, and I can get list of all commits using
GitHubClient.Repository.Commit.GetAll, but there seems to be absolutely nothing in the responses that would link the two together.
There is an API for a single commit details that lists the modified files, but I would have to make an API call it for each commit separately.
Is there a way to get the list of files and last associated commit with them the way it is shown on the website when browsing code?