{"action":"created","comment":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/comments/47093636","id":47093636,"diff_hunk":"@@ -70,6 +70,21 @@ public interface IRepository : IDisposable\n         SubmoduleCollection Submodules { get; }\n \n         /// <summary>\n+        /// Gets the post-checkout handler registered with this repository\n+        /// </summary>\n+        PostCheckoutDelegate PostCheckoutCallback { get; }","path":"LibGit2Sharp/IRepository.cs","position":6,"original_position":6,"commit_id":"e1796495caa11a193f5453c863c50a458cace29d","original_commit_id":"e1796495caa11a193f5453c863c50a458cace29d","user":{"login":"whoisj","id":11578325,"avatar_url":"https://avatars.githubusercontent.com/u/11578325?v=3","gravatar_id":"","url":"https://api.github.com/users/whoisj","html_url":"https://github.com/whoisj","followers_url":"https://api.github.com/users/whoisj/followers","following_url":"https://api.github.com/users/whoisj/following{/other_user}","gists_url":"https://api.github.com/users/whoisj/gists{/gist_id}","starred_url":"https://api.github.com/users/whoisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoisj/subscriptions","organizations_url":"https://api.github.com/users/whoisj/orgs","repos_url":"https://api.github.com/users/whoisj/repos","events_url":"https://api.github.com/users/whoisj/events{/privacy}","received_events_url":"https://api.github.com/users/whoisj/received_events","type":"User","site_admin":false},"body":"Good question. As best I can tell Git.exe only does so after git-checkout, so as to emulate them I've done that here -- if somebody knows better, please speak up :pray: ","created_at":"2015-12-09T14:07:07Z","updated_at":"2015-12-09T14:07:07Z","html_url":"https://github.com/libgit2/libgit2sharp/pull/1234#discussion_r47093636","pull_request_url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/1234","_links":{"self":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/comments/47093636"},"html":{"href":"https://github.com/libgit2/libgit2sharp/pull/1234#discussion_r47093636"},"pull_request":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/1234"}}},"pull_request":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/1234","id":51831872,"html_url":"https://github.com/libgit2/libgit2sharp/pull/1234","diff_url":"https://github.com/libgit2/libgit2sharp/pull/1234.diff","patch_url":"https://github.com/libgit2/libgit2sharp/pull/1234.patch","issue_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1234","number":1234,"state":"open","locked":false,"title":"Partial Git Hook Support","user":{"login":"whoisj","id":11578325,"avatar_url":"https://avatars.githubusercontent.com/u/11578325?v=3","gravatar_id":"","url":"https://api.github.com/users/whoisj","html_url":"https://github.com/whoisj","followers_url":"https://api.github.com/users/whoisj/followers","following_url":"https://api.github.com/users/whoisj/following{/other_user}","gists_url":"https://api.github.com/users/whoisj/gists{/gist_id}","starred_url":"https://api.github.com/users/whoisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoisj/subscriptions","organizations_url":"https://api.github.com/users/whoisj/orgs","repos_url":"https://api.github.com/users/whoisj/repos","events_url":"https://api.github.com/users/whoisj/events{/privacy}","received_events_url":"https://api.github.com/users/whoisj/received_events","type":"User","site_admin":false},"body":"Adds Git-Hook like callbacks at the repository level, with support for the following hooks:\r\n * post-checkout\r\n * post-commit\r\n * pre-push\r\n\r\nThe concept here is to add hook support at the repo level, instead of say globally or per call (via `*Options`). Where a method took a callback via `*Options`, I let that override the repository level callback.\r\n\r\nStill need to add proper comments and test, but this is a litmus test to see what the community thinks of the idea.","created_at":"2015-11-25T18:42:42Z","updated_at":"2015-12-09T14:07:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88557d09a3009e3283fc9f06979a6653e9b7cbd5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/1234/commits","review_comments_url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/1234/comments","review_comment_url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1234/comments","statuses_url":"https://api.github.com/repos/libgit2/libgit2sharp/statuses/e1796495caa11a193f5453c863c50a458cace29d","head":{"label":"whoisj:add-git-hook-kinda","ref":"add-git-hook-kinda","sha":"e1796495caa11a193f5453c863c50a458cace29d","user":{"login":"whoisj","id":11578325,"avatar_url":"https://avatars.githubusercontent.com/u/11578325?v=3","gravatar_id":"","url":"https://api.github.com/users/whoisj","html_url":"https://github.com/whoisj","followers_url":"https://api.github.com/users/whoisj/followers","following_url":"https://api.github.com/users/whoisj/following{/other_user}","gists_url":"https://api.github.com/users/whoisj/gists{/gist_id}","starred_url":"https://api.github.com/users/whoisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoisj/subscriptions","organizations_url":"https://api.github.com/users/whoisj/orgs","repos_url":"https://api.github.com/users/whoisj/repos","events_url":"https://api.github.com/users/whoisj/events{/privacy}","received_events_url":"https://api.github.com/users/whoisj/received_events","type":"User","site_admin":false},"repo":{"id":34470330,"name":"libgit2sharp","full_name":"whoisj/libgit2sharp","owner":{"login":"whoisj","id":11578325,"avatar_url":"https://avatars.githubusercontent.com/u/11578325?v=3","gravatar_id":"","url":"https://api.github.com/users/whoisj","html_url":"https://github.com/whoisj","followers_url":"https://api.github.com/users/whoisj/followers","following_url":"https://api.github.com/users/whoisj/following{/other_user}","gists_url":"https://api.github.com/users/whoisj/gists{/gist_id}","starred_url":"https://api.github.com/users/whoisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoisj/subscriptions","organizations_url":"https://api.github.com/users/whoisj/orgs","repos_url":"https://api.github.com/users/whoisj/repos","events_url":"https://api.github.com/users/whoisj/events{/privacy}","received_events_url":"https://api.github.com/users/whoisj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/whoisj/libgit2sharp","description":"Git + .Net/Mono = ❤","fork":true,"url":"https://api.github.com/repos/whoisj/libgit2sharp","forks_url":"https://api.github.com/repos/whoisj/libgit2sharp/forks","keys_url":"https://api.github.com/repos/whoisj/libgit2sharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whoisj/libgit2sharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whoisj/libgit2sharp/teams","hooks_url":"https://api.github.com/repos/whoisj/libgit2sharp/hooks","issue_events_url":"https://api.github.com/repos/whoisj/libgit2sharp/issues/events{/number}","events_url":"https://api.github.com/repos/whoisj/libgit2sharp/events","assignees_url":"https://api.github.com/repos/whoisj/libgit2sharp/assignees{/user}","branches_url":"https://api.github.com/repos/whoisj/libgit2sharp/branches{/branch}","tags_url":"https://api.github.com/repos/whoisj/libgit2sharp/tags","blobs_url":"https://api.github.com/repos/whoisj/libgit2sharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whoisj/libgit2sharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whoisj/libgit2sharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/whoisj/libgit2sharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whoisj/libgit2sharp/statuses/{sha}","languages_url":"https://api.github.com/repos/whoisj/libgit2sharp/languages","stargazers_url":"https://api.github.com/repos/whoisj/libgit2sharp/stargazers","contributors_url":"https://api.github.com/repos/whoisj/libgit2sharp/contributors","subscribers_url":"https://api.github.com/repos/whoisj/libgit2sharp/subscribers","subscription_url":"https://api.github.com/repos/whoisj/libgit2sharp/subscription","commits_url":"https://api.github.com/repos/whoisj/libgit2sharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/whoisj/libgit2sharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/whoisj/libgit2sharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/whoisj/libgit2sharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/whoisj/libgit2sharp/contents/{+path}","compare_url":"https://api.github.com/repos/whoisj/libgit2sharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whoisj/libgit2sharp/merges","archive_url":"https://api.github.com/repos/whoisj/libgit2sharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whoisj/libgit2sharp/downloads","issues_url":"https://api.github.com/repos/whoisj/libgit2sharp/issues{/number}","pulls_url":"https://api.github.com/repos/whoisj/libgit2sharp/pulls{/number}","milestones_url":"https://api.github.com/repos/whoisj/libgit2sharp/milestones{/number}","notifications_url":"https://api.github.com/repos/whoisj/libgit2sharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whoisj/libgit2sharp/labels{/name}","releases_url":"https://api.github.com/repos/whoisj/libgit2sharp/releases{/id}","created_at":"2015-04-23T17:12:28Z","updated_at":"2015-04-30T21:31:57Z","pushed_at":"2015-12-07T14:41:07Z","git_url":"git://github.com/whoisj/libgit2sharp.git","ssh_url":"git@github.com:whoisj/libgit2sharp.git","clone_url":"https://github.com/whoisj/libgit2sharp.git","svn_url":"https://github.com/whoisj/libgit2sharp","homepage":"http://libgit2.github.com","size":144902,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"vNext"}},"base":{"label":"libgit2:vNext","ref":"vNext","sha":"f8c944be073b787f4d45e59a91ecb571ade33e40","user":{"login":"libgit2","id":394745,"avatar_url":"https://avatars.githubusercontent.com/u/394745?v=3","gravatar_id":"","url":"https://api.github.com/users/libgit2","html_url":"https://github.com/libgit2","followers_url":"https://api.github.com/users/libgit2/followers","following_url":"https://api.github.com/users/libgit2/following{/other_user}","gists_url":"https://api.github.com/users/libgit2/gists{/gist_id}","starred_url":"https://api.github.com/users/libgit2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libgit2/subscriptions","organizations_url":"https://api.github.com/users/libgit2/orgs","repos_url":"https://api.github.com/users/libgit2/repos","events_url":"https://api.github.com/users/libgit2/events{/privacy}","received_events_url":"https://api.github.com/users/libgit2/received_events","type":"Organization","site_admin":false},"repo":{"id":1415168,"name":"libgit2sharp","full_name":"libgit2/libgit2sharp","owner":{"login":"libgit2","id":394745,"avatar_url":"https://avatars.githubusercontent.com/u/394745?v=3","gravatar_id":"","url":"https://api.github.com/users/libgit2","html_url":"https://github.com/libgit2","followers_url":"https://api.github.com/users/libgit2/followers","following_url":"https://api.github.com/users/libgit2/following{/other_user}","gists_url":"https://api.github.com/users/libgit2/gists{/gist_id}","starred_url":"https://api.github.com/users/libgit2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libgit2/subscriptions","organizations_url":"https://api.github.com/users/libgit2/orgs","repos_url":"https://api.github.com/users/libgit2/repos","events_url":"https://api.github.com/users/libgit2/events{/privacy}","received_events_url":"https://api.github.com/users/libgit2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/libgit2/libgit2sharp","description":"Git + .NET/Mono = ❤","fork":false,"url":"https://api.github.com/repos/libgit2/libgit2sharp","forks_url":"https://api.github.com/repos/libgit2/libgit2sharp/forks","keys_url":"https://api.github.com/repos/libgit2/libgit2sharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libgit2/libgit2sharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libgit2/libgit2sharp/teams","hooks_url":"https://api.github.com/repos/libgit2/libgit2sharp/hooks","issue_events_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/events{/number}","events_url":"https://api.github.com/repos/libgit2/libgit2sharp/events","assignees_url":"https://api.github.com/repos/libgit2/libgit2sharp/assignees{/user}","branches_url":"https://api.github.com/repos/libgit2/libgit2sharp/branches{/branch}","tags_url":"https://api.github.com/repos/libgit2/libgit2sharp/tags","blobs_url":"https://api.github.com/repos/libgit2/libgit2sharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libgit2/libgit2sharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libgit2/libgit2sharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/libgit2/libgit2sharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libgit2/libgit2sharp/statuses/{sha}","languages_url":"https://api.github.com/repos/libgit2/libgit2sharp/languages","stargazers_url":"https://api.github.com/repos/libgit2/libgit2sharp/stargazers","contributors_url":"https://api.github.com/repos/libgit2/libgit2sharp/contributors","subscribers_url":"https://api.github.com/repos/libgit2/libgit2sharp/subscribers","subscription_url":"https://api.github.com/repos/libgit2/libgit2sharp/subscription","commits_url":"https://api.github.com/repos/libgit2/libgit2sharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/libgit2/libgit2sharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/libgit2/libgit2sharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/libgit2/libgit2sharp/contents/{+path}","compare_url":"https://api.github.com/repos/libgit2/libgit2sharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libgit2/libgit2sharp/merges","archive_url":"https://api.github.com/repos/libgit2/libgit2sharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libgit2/libgit2sharp/downloads","issues_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues{/number}","pulls_url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls{/number}","milestones_url":"https://api.github.com/repos/libgit2/libgit2sharp/milestones{/number}","notifications_url":"https://api.github.com/repos/libgit2/libgit2sharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libgit2/libgit2sharp/labels{/name}","releases_url":"https://api.github.com/repos/libgit2/libgit2sharp/releases{/id}","created_at":"2011-02-26T16:44:49Z","updated_at":"2015-12-07T23:54:10Z","pushed_at":"2015-12-09T13:29:52Z","git_url":"git://github.com/libgit2/libgit2sharp.git","ssh_url":"git@github.com:libgit2/libgit2sharp.git","clone_url":"https://github.com/libgit2/libgit2sharp.git","svn_url":"https://github.com/libgit2/libgit2sharp","homepage":"http://libgit2.github.com","size":257426,"stargazers_count":893,"watchers_count":893,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":376,"mirror_url":null,"open_issues_count":173,"forks":376,"open_issues":173,"watchers":893,"default_branch":"vNext"}},"_links":{"self":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/1234"},"html":{"href":"https://github.com/libgit2/libgit2sharp/pull/1234"},"issue":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1234"},"comments":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1234/comments"},"review_comments":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/1234/comments"},"review_comment":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/1234/commits"},"statuses":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/statuses/e1796495caa11a193f5453c863c50a458cace29d"}}}}