{"action":"opened","number":964,"pull_request":{"url":"https://api.github.com/repos/nodegit/nodegit/pulls/964","id":63968168,"html_url":"https://github.com/nodegit/nodegit/pull/964","diff_url":"https://github.com/nodegit/nodegit/pull/964.diff","patch_url":"https://github.com/nodegit/nodegit/pull/964.patch","issue_url":"https://api.github.com/repos/nodegit/nodegit/issues/964","number":964,"state":"open","locked":false,"title":"diff.blobToBuffer: Fix passing in Buffers instead of strings.","user":{"login":"tylerchurch","id":2380817,"avatar_url":"https://avatars.githubusercontent.com/u/2380817?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerchurch","html_url":"https://github.com/tylerchurch","followers_url":"https://api.github.com/users/tylerchurch/followers","following_url":"https://api.github.com/users/tylerchurch/following{/other_user}","gists_url":"https://api.github.com/users/tylerchurch/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerchurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerchurch/subscriptions","organizations_url":"https://api.github.com/users/tylerchurch/orgs","repos_url":"https://api.github.com/users/tylerchurch/repos","events_url":"https://api.github.com/users/tylerchurch/events{/privacy}","received_events_url":"https://api.github.com/users/tylerchurch/received_events","type":"User","site_admin":false},"body":"Been seeing some strageness with `blobToBuffer` (see the issue I created over here, for example: https://github.com/nodegit/nodegit/issues/963 )\r\n\r\nThis pull requests fixes the fact that if you pass in an object of type Buffer, it is turned into a string, but then that string is never used (and because of the way the C bindings are written, because the object isn't of type string, it gets turned into a null, and you get a diff that looks like there's no content in the file.)","created_at":"2016-03-23T23:17:09Z","updated_at":"2016-03-23T23:17:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nodegit/nodegit/pulls/964/commits","review_comments_url":"https://api.github.com/repos/nodegit/nodegit/pulls/964/comments","review_comment_url":"https://api.github.com/repos/nodegit/nodegit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodegit/nodegit/issues/964/comments","statuses_url":"https://api.github.com/repos/nodegit/nodegit/statuses/da71a29de2e37d222c2559090deb66725fcb0a7a","head":{"label":"tylerchurch:patch-2","ref":"patch-2","sha":"da71a29de2e37d222c2559090deb66725fcb0a7a","user":{"login":"tylerchurch","id":2380817,"avatar_url":"https://avatars.githubusercontent.com/u/2380817?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerchurch","html_url":"https://github.com/tylerchurch","followers_url":"https://api.github.com/users/tylerchurch/followers","following_url":"https://api.github.com/users/tylerchurch/following{/other_user}","gists_url":"https://api.github.com/users/tylerchurch/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerchurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerchurch/subscriptions","organizations_url":"https://api.github.com/users/tylerchurch/orgs","repos_url":"https://api.github.com/users/tylerchurch/repos","events_url":"https://api.github.com/users/tylerchurch/events{/privacy}","received_events_url":"https://api.github.com/users/tylerchurch/received_events","type":"User","site_admin":false},"repo":{"id":54176462,"name":"nodegit","full_name":"tylerchurch/nodegit","owner":{"login":"tylerchurch","id":2380817,"avatar_url":"https://avatars.githubusercontent.com/u/2380817?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerchurch","html_url":"https://github.com/tylerchurch","followers_url":"https://api.github.com/users/tylerchurch/followers","following_url":"https://api.github.com/users/tylerchurch/following{/other_user}","gists_url":"https://api.github.com/users/tylerchurch/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerchurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerchurch/subscriptions","organizations_url":"https://api.github.com/users/tylerchurch/orgs","repos_url":"https://api.github.com/users/tylerchurch/repos","events_url":"https://api.github.com/users/tylerchurch/events{/privacy}","received_events_url":"https://api.github.com/users/tylerchurch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tylerchurch/nodegit","description":"Native Node bindings to Git.","fork":true,"url":"https://api.github.com/repos/tylerchurch/nodegit","forks_url":"https://api.github.com/repos/tylerchurch/nodegit/forks","keys_url":"https://api.github.com/repos/tylerchurch/nodegit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tylerchurch/nodegit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tylerchurch/nodegit/teams","hooks_url":"https://api.github.com/repos/tylerchurch/nodegit/hooks","issue_events_url":"https://api.github.com/repos/tylerchurch/nodegit/issues/events{/number}","events_url":"https://api.github.com/repos/tylerchurch/nodegit/events","assignees_url":"https://api.github.com/repos/tylerchurch/nodegit/assignees{/user}","branches_url":"https://api.github.com/repos/tylerchurch/nodegit/branches{/branch}","tags_url":"https://api.github.com/repos/tylerchurch/nodegit/tags","blobs_url":"https://api.github.com/repos/tylerchurch/nodegit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tylerchurch/nodegit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tylerchurch/nodegit/git/refs{/sha}","trees_url":"https://api.github.com/repos/tylerchurch/nodegit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tylerchurch/nodegit/statuses/{sha}","languages_url":"https://api.github.com/repos/tylerchurch/nodegit/languages","stargazers_url":"https://api.github.com/repos/tylerchurch/nodegit/stargazers","contributors_url":"https://api.github.com/repos/tylerchurch/nodegit/contributors","subscribers_url":"https://api.github.com/repos/tylerchurch/nodegit/subscribers","subscription_url":"https://api.github.com/repos/tylerchurch/nodegit/subscription","commits_url":"https://api.github.com/repos/tylerchurch/nodegit/commits{/sha}","git_commits_url":"https://api.github.com/repos/tylerchurch/nodegit/git/commits{/sha}","comments_url":"https://api.github.com/repos/tylerchurch/nodegit/comments{/number}","issue_comment_url":"https://api.github.com/repos/tylerchurch/nodegit/issues/comments{/number}","contents_url":"https://api.github.com/repos/tylerchurch/nodegit/contents/{+path}","compare_url":"https://api.github.com/repos/tylerchurch/nodegit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tylerchurch/nodegit/merges","archive_url":"https://api.github.com/repos/tylerchurch/nodegit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tylerchurch/nodegit/downloads","issues_url":"https://api.github.com/repos/tylerchurch/nodegit/issues{/number}","pulls_url":"https://api.github.com/repos/tylerchurch/nodegit/pulls{/number}","milestones_url":"https://api.github.com/repos/tylerchurch/nodegit/milestones{/number}","notifications_url":"https://api.github.com/repos/tylerchurch/nodegit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tylerchurch/nodegit/labels{/name}","releases_url":"https://api.github.com/repos/tylerchurch/nodegit/releases{/id}","deployments_url":"https://api.github.com/repos/tylerchurch/nodegit/deployments","created_at":"2016-03-18T05:33:01Z","updated_at":"2016-03-18T05:33:02Z","pushed_at":"2016-03-23T23:14:45Z","git_url":"git://github.com/tylerchurch/nodegit.git","ssh_url":"git@github.com:tylerchurch/nodegit.git","clone_url":"https://github.com/tylerchurch/nodegit.git","svn_url":"https://github.com/tylerchurch/nodegit","homepage":"http://www.nodegit.org/","size":28170,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nodegit:master","ref":"master","sha":"83f6affb4f1305826336fd34b3126d8b35debb2a","user":{"login":"nodegit","id":657068,"avatar_url":"https://avatars.githubusercontent.com/u/657068?v=3","gravatar_id":"","url":"https://api.github.com/users/nodegit","html_url":"https://github.com/nodegit","followers_url":"https://api.github.com/users/nodegit/followers","following_url":"https://api.github.com/users/nodegit/following{/other_user}","gists_url":"https://api.github.com/users/nodegit/gists{/gist_id}","starred_url":"https://api.github.com/users/nodegit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodegit/subscriptions","organizations_url":"https://api.github.com/users/nodegit/orgs","repos_url":"https://api.github.com/users/nodegit/repos","events_url":"https://api.github.com/users/nodegit/events{/privacy}","received_events_url":"https://api.github.com/users/nodegit/received_events","type":"Organization","site_admin":false},"repo":{"id":1383170,"name":"nodegit","full_name":"nodegit/nodegit","owner":{"login":"nodegit","id":657068,"avatar_url":"https://avatars.githubusercontent.com/u/657068?v=3","gravatar_id":"","url":"https://api.github.com/users/nodegit","html_url":"https://github.com/nodegit","followers_url":"https://api.github.com/users/nodegit/followers","following_url":"https://api.github.com/users/nodegit/following{/other_user}","gists_url":"https://api.github.com/users/nodegit/gists{/gist_id}","starred_url":"https://api.github.com/users/nodegit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodegit/subscriptions","organizations_url":"https://api.github.com/users/nodegit/orgs","repos_url":"https://api.github.com/users/nodegit/repos","events_url":"https://api.github.com/users/nodegit/events{/privacy}","received_events_url":"https://api.github.com/users/nodegit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodegit/nodegit","description":"Native Node bindings to Git.","fork":false,"url":"https://api.github.com/repos/nodegit/nodegit","forks_url":"https://api.github.com/repos/nodegit/nodegit/forks","keys_url":"https://api.github.com/repos/nodegit/nodegit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodegit/nodegit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodegit/nodegit/teams","hooks_url":"https://api.github.com/repos/nodegit/nodegit/hooks","issue_events_url":"https://api.github.com/repos/nodegit/nodegit/issues/events{/number}","events_url":"https://api.github.com/repos/nodegit/nodegit/events","assignees_url":"https://api.github.com/repos/nodegit/nodegit/assignees{/user}","branches_url":"https://api.github.com/repos/nodegit/nodegit/branches{/branch}","tags_url":"https://api.github.com/repos/nodegit/nodegit/tags","blobs_url":"https://api.github.com/repos/nodegit/nodegit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodegit/nodegit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodegit/nodegit/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodegit/nodegit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodegit/nodegit/statuses/{sha}","languages_url":"https://api.github.com/repos/nodegit/nodegit/languages","stargazers_url":"https://api.github.com/repos/nodegit/nodegit/stargazers","contributors_url":"https://api.github.com/repos/nodegit/nodegit/contributors","subscribers_url":"https://api.github.com/repos/nodegit/nodegit/subscribers","subscription_url":"https://api.github.com/repos/nodegit/nodegit/subscription","commits_url":"https://api.github.com/repos/nodegit/nodegit/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodegit/nodegit/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodegit/nodegit/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodegit/nodegit/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodegit/nodegit/contents/{+path}","compare_url":"https://api.github.com/repos/nodegit/nodegit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodegit/nodegit/merges","archive_url":"https://api.github.com/repos/nodegit/nodegit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodegit/nodegit/downloads","issues_url":"https://api.github.com/repos/nodegit/nodegit/issues{/number}","pulls_url":"https://api.github.com/repos/nodegit/nodegit/pulls{/number}","milestones_url":"https://api.github.com/repos/nodegit/nodegit/milestones{/number}","notifications_url":"https://api.github.com/repos/nodegit/nodegit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodegit/nodegit/labels{/name}","releases_url":"https://api.github.com/repos/nodegit/nodegit/releases{/id}","deployments_url":"https://api.github.com/repos/nodegit/nodegit/deployments","created_at":"2011-02-18T16:42:46Z","updated_at":"2016-03-23T11:59:31Z","pushed_at":"2016-03-23T23:13:35Z","git_url":"git://github.com/nodegit/nodegit.git","ssh_url":"git@github.com:nodegit/nodegit.git","clone_url":"https://github.com/nodegit/nodegit.git","svn_url":"https://github.com/nodegit/nodegit","homepage":"http://www.nodegit.org/","size":28443,"stargazers_count":1757,"watchers_count":1757,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":261,"mirror_url":null,"open_issues_count":96,"forks":261,"open_issues":96,"watchers":1757,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodegit/nodegit/pulls/964"},"html":{"href":"https://github.com/nodegit/nodegit/pull/964"},"issue":{"href":"https://api.github.com/repos/nodegit/nodegit/issues/964"},"comments":{"href":"https://api.github.com/repos/nodegit/nodegit/issues/964/comments"},"review_comments":{"href":"https://api.github.com/repos/nodegit/nodegit/pulls/964/comments"},"review_comment":{"href":"https://api.github.com/repos/nodegit/nodegit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodegit/nodegit/pulls/964/commits"},"statuses":{"href":"https://api.github.com/repos/nodegit/nodegit/statuses/da71a29de2e37d222c2559090deb66725fcb0a7a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}