{"issue":{"state":"open","created_at":"2011-11-18T11:45:36Z","updated_at":"2011-11-23T12:35:21Z","comments":4,"user":{"gravatar_id":"45a24110d5fea2d2ed6ae414623941c1","id":1119693,"url":"https://api.github.com/users/Flonix","login":"Flonix","avatar_url":"https://secure.gravatar.com/avatar/45a24110d5fea2d2ed6ae414623941c1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hi @all.\r\n\r\nI'm searching for a method that will return the last commit that affected a given file.\r\n\r\nI looked through the API but I did not find a method that seems to do it.\r\n\r\nFirst question: Was the solution overlooked?\r\nSecond question: How to get the last commit?\r\n\r\nThanks.","assignee":null,"id":2279309,"number":89,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"Question: How to get the last commit that affected a given file","closed_at":null,"html_url":"https://github.com/libgit2/libgit2sharp/issues/89","milestone":null,"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/89"},"action":"created","comment":{"created_at":"2011-11-23T12:35:21Z","updated_at":"2011-11-23T12:35:21Z","user":{"gravatar_id":"45a24110d5fea2d2ed6ae414623941c1","id":1119693,"url":"https://api.github.com/users/Flonix","login":"Flonix","avatar_url":"https://secure.gravatar.com/avatar/45a24110d5fea2d2ed6ae414623941c1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hey @shytikov,\r\n\r\nso we have the same intention ;-)\r\nI'm currently reading (and finishing) my GIT book. I had some gaps regarding the GIT internal Tree and Blob entries.\r\n\r\nPlease let me know when you start implementing. \r\nI hope I have time to implement a (failing) test within the next few days.\r\n\r\nSome very first thoughts about the API:\r\n\r\n* Parameter `Commit startCommit`, defines where to start the history walking\r\n* Parameter `string filePath`, defines for which file we will search for\r\n* Parameter `int maxCommits`, defines when to stop history walking\r\n* Result: A list of (affected) Commits, maximum legth of the resulting list is `maxCommits`\r\n\r\nStill missing: A good name for the method name...","id":2848164,"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/comments/2848164"}}