{"action":"created","comment":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/comments/24701867","id":24701867,"diff_hunk":"@@ -0,0 +1,20 @@\n+namespace LibGit2Sharp\n+{\n+    /// <summary>\n+    /// These values control which direction of change is with which which a filter is being applied.\n+    /// </summary>\n+    public enum FilterMode\n+    {\n+        /// <summary>\n+        /// Smudge occurs when exporting a file from the Git object database to the working directory.\n+        /// For example, a file would be smudged during a checkout operation.\n+        /// </summary>\n+        Smudge = 0,\n+\n+        /// <summary>\n+        /// Clean occurs when importing a file from the working directory to the Git object database.\n+        /// For example, a file would be cleaned when staging a file.\n+        /// </summary>\n+        Clean = (1 << 0),\n+    }\n+}","path":"LibGit2Sharp/FilterMode.cs","position":20,"original_position":20,"commit_id":"00610c3562ba8a7c47ebc481f2e1e342a7e78660","original_commit_id":"00610c3562ba8a7c47ebc481f2e1e342a7e78660","user":{"login":"jamill","id":2045976,"avatar_url":"https://avatars.githubusercontent.com/u/2045976?v=3","gravatar_id":"","url":"https://api.github.com/users/jamill","html_url":"https://github.com/jamill","followers_url":"https://api.github.com/users/jamill/followers","following_url":"https://api.github.com/users/jamill/following{/other_user}","gists_url":"https://api.github.com/users/jamill/gists{/gist_id}","starred_url":"https://api.github.com/users/jamill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamill/subscriptions","organizations_url":"https://api.github.com/users/jamill/orgs","repos_url":"https://api.github.com/users/jamill/repos","events_url":"https://api.github.com/users/jamill/events{/privacy}","received_events_url":"https://api.github.com/users/jamill/received_events","type":"User","site_admin":false},"body":"nit: trailing newline","created_at":"2015-02-13T22:20:17Z","updated_at":"2015-02-13T22:20:17Z","html_url":"https://github.com/libgit2/libgit2sharp/pull/854#discussion_r24701867","pull_request_url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/854","_links":{"self":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/comments/24701867"},"html":{"href":"https://github.com/libgit2/libgit2sharp/pull/854#discussion_r24701867"},"pull_request":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/854"}}},"pull_request":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/854","id":23565125,"html_url":"https://github.com/libgit2/libgit2sharp/pull/854","diff_url":"https://github.com/libgit2/libgit2sharp/pull/854.diff","patch_url":"https://github.com/libgit2/libgit2sharp/pull/854.patch","issue_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/854","number":854,"state":"open","locked":false,"title":"Register custom filters","user":{"login":"ammeep","id":1024672,"avatar_url":"https://avatars.githubusercontent.com/u/1024672?v=3","gravatar_id":"","url":"https://api.github.com/users/ammeep","html_url":"https://github.com/ammeep","followers_url":"https://api.github.com/users/ammeep/followers","following_url":"https://api.github.com/users/ammeep/following{/other_user}","gists_url":"https://api.github.com/users/ammeep/gists{/gist_id}","starred_url":"https://api.github.com/users/ammeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammeep/subscriptions","organizations_url":"https://api.github.com/users/ammeep/orgs","repos_url":"https://api.github.com/users/ammeep/repos","events_url":"https://api.github.com/users/ammeep/events{/privacy}","received_events_url":"https://api.github.com/users/ammeep/received_events","type":"User","site_admin":true},"body":"I want to expose an API for registering custom clean and smudge filters via libgit2.\r\n\r\nMy knowledge of C is rusty, and this is the first time I have looked at libgit2sharp in any great detail. So, I'm going to open this PR early, in the hopes that if anyone has time to spot anything terrible I do along the way they will be able to point me in the right direction :pray: \r\n\r\n###  Todo\r\n\r\n- [x] Register and deregsiter a filter\r\n- [x] Define apply callback\r\n- [x] Define check callback\r\n- [x] Define shutdown/init callbacks\r\n- [x] Tests","created_at":"2014-10-29T21:10:14Z","updated_at":"2015-02-13T22:20:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b07e8fa68edac5c16a557102aa6edc928fdd415","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/854/commits","review_comments_url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/854/comments","review_comment_url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/comments/{number}","comments_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/854/comments","statuses_url":"https://api.github.com/repos/libgit2/libgit2sharp/statuses/00610c3562ba8a7c47ebc481f2e1e342a7e78660","head":{"label":"libgit2:register-custom-filters","ref":"register-custom-filters","sha":"00610c3562ba8a7c47ebc481f2e1e342a7e78660","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-02-13T19:18:57Z","pushed_at":"2015-02-13T22:00:30Z","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":200076,"stargazers_count":703,"watchers_count":703,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":285,"mirror_url":null,"open_issues_count":122,"forks":285,"open_issues":122,"watchers":703,"default_branch":"vNext"}},"base":{"label":"libgit2:vNext","ref":"vNext","sha":"bd06dac2db9947808a933d217e21816f05a77dc9","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-02-13T19:18:57Z","pushed_at":"2015-02-13T22:00:30Z","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":200076,"stargazers_count":703,"watchers_count":703,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":285,"mirror_url":null,"open_issues_count":122,"forks":285,"open_issues":122,"watchers":703,"default_branch":"vNext"}},"_links":{"self":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/854"},"html":{"href":"https://github.com/libgit2/libgit2sharp/pull/854"},"issue":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/issues/854"},"comments":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/issues/854/comments"},"review_comments":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/854/comments"},"review_comment":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/854/commits"},"statuses":{"href":"https://api.github.com/repos/libgit2/libgit2sharp/statuses/00610c3562ba8a7c47ebc481f2e1e342a7e78660"}}}}