{"action":"opened","number":160,"pull_request":{"url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls/160","id":31905271,"html_url":"https://github.com/jacquesg/p5-Git-Raw/pull/160","diff_url":"https://github.com/jacquesg/p5-Git-Raw/pull/160.diff","patch_url":"https://github.com/jacquesg/p5-Git-Raw/pull/160.patch","issue_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues/160","number":160,"state":"open","locked":false,"title":"Fix reference counting issues","user":{"login":"jacquesg","id":3534453,"avatar_url":"https://avatars.githubusercontent.com/u/3534453?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesg","html_url":"https://github.com/jacquesg","followers_url":"https://api.github.com/users/jacquesg/followers","following_url":"https://api.github.com/users/jacquesg/following{/other_user}","gists_url":"https://api.github.com/users/jacquesg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesg/subscriptions","organizations_url":"https://api.github.com/users/jacquesg/orgs","repos_url":"https://api.github.com/users/jacquesg/repos","events_url":"https://api.github.com/users/jacquesg/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesg/received_events","type":"User","site_admin":false},"body":"This PR fixes 2 reference count issues:\r\n\r\n* When a ```Diff``` object is created, we need to increase the reference count of the ```Repository``` and decrease it when the ```Diff``` is destroyed. This was done inconsistently.\r\n* When creating a ```Commit```, we should not be ```shift```-ing the commit objects off of the list, we only need a weak reference to them.","created_at":"2015-03-25T09:32:16Z","updated_at":"2015-03-25T09:32:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls/160/commits","review_comments_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls/160/comments","review_comment_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues/160/comments","statuses_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/statuses/bd0e0c723c500d824fbbde2f7d1dd889f8910a78","head":{"label":"jacquesg:jacquesg/refcount","ref":"jacquesg/refcount","sha":"bd0e0c723c500d824fbbde2f7d1dd889f8910a78","user":{"login":"jacquesg","id":3534453,"avatar_url":"https://avatars.githubusercontent.com/u/3534453?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesg","html_url":"https://github.com/jacquesg","followers_url":"https://api.github.com/users/jacquesg/followers","following_url":"https://api.github.com/users/jacquesg/following{/other_user}","gists_url":"https://api.github.com/users/jacquesg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesg/subscriptions","organizations_url":"https://api.github.com/users/jacquesg/orgs","repos_url":"https://api.github.com/users/jacquesg/repos","events_url":"https://api.github.com/users/jacquesg/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesg/received_events","type":"User","site_admin":false},"repo":{"id":5303104,"name":"p5-Git-Raw","full_name":"jacquesg/p5-Git-Raw","owner":{"login":"jacquesg","id":3534453,"avatar_url":"https://avatars.githubusercontent.com/u/3534453?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesg","html_url":"https://github.com/jacquesg","followers_url":"https://api.github.com/users/jacquesg/followers","following_url":"https://api.github.com/users/jacquesg/following{/other_user}","gists_url":"https://api.github.com/users/jacquesg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesg/subscriptions","organizations_url":"https://api.github.com/users/jacquesg/orgs","repos_url":"https://api.github.com/users/jacquesg/repos","events_url":"https://api.github.com/users/jacquesg/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacquesg/p5-Git-Raw","description":"Perl bindings to the Git linkable library (libgit2)","fork":false,"url":"https://api.github.com/repos/jacquesg/p5-Git-Raw","forks_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/forks","keys_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/teams","hooks_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/hooks","issue_events_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues/events{/number}","events_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/events","assignees_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/assignees{/user}","branches_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/branches{/branch}","tags_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/tags","blobs_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/statuses/{sha}","languages_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/languages","stargazers_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/stargazers","contributors_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/contributors","subscribers_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/subscribers","subscription_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/subscription","commits_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/contents/{+path}","compare_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/merges","archive_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/downloads","issues_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues{/number}","pulls_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls{/number}","milestones_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/milestones{/number}","notifications_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/labels{/name}","releases_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/releases{/id}","created_at":"2012-08-05T11:39:59Z","updated_at":"2015-03-24T12:55:12Z","pushed_at":"2015-03-25T09:29:25Z","git_url":"git://github.com/jacquesg/p5-Git-Raw.git","ssh_url":"git@github.com:jacquesg/p5-Git-Raw.git","clone_url":"https://github.com/jacquesg/p5-Git-Raw.git","svn_url":"https://github.com/jacquesg/p5-Git-Raw","homepage":"http://metacpan.org/release/Git-Raw/","size":7961,"stargazers_count":21,"watchers_count":21,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":21,"default_branch":"master"}},"base":{"label":"jacquesg:master","ref":"master","sha":"5c794afa8ae49eb1723ccad53edcacc759905afc","user":{"login":"jacquesg","id":3534453,"avatar_url":"https://avatars.githubusercontent.com/u/3534453?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesg","html_url":"https://github.com/jacquesg","followers_url":"https://api.github.com/users/jacquesg/followers","following_url":"https://api.github.com/users/jacquesg/following{/other_user}","gists_url":"https://api.github.com/users/jacquesg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesg/subscriptions","organizations_url":"https://api.github.com/users/jacquesg/orgs","repos_url":"https://api.github.com/users/jacquesg/repos","events_url":"https://api.github.com/users/jacquesg/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesg/received_events","type":"User","site_admin":false},"repo":{"id":5303104,"name":"p5-Git-Raw","full_name":"jacquesg/p5-Git-Raw","owner":{"login":"jacquesg","id":3534453,"avatar_url":"https://avatars.githubusercontent.com/u/3534453?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesg","html_url":"https://github.com/jacquesg","followers_url":"https://api.github.com/users/jacquesg/followers","following_url":"https://api.github.com/users/jacquesg/following{/other_user}","gists_url":"https://api.github.com/users/jacquesg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesg/subscriptions","organizations_url":"https://api.github.com/users/jacquesg/orgs","repos_url":"https://api.github.com/users/jacquesg/repos","events_url":"https://api.github.com/users/jacquesg/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacquesg/p5-Git-Raw","description":"Perl bindings to the Git linkable library (libgit2)","fork":false,"url":"https://api.github.com/repos/jacquesg/p5-Git-Raw","forks_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/forks","keys_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/teams","hooks_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/hooks","issue_events_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues/events{/number}","events_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/events","assignees_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/assignees{/user}","branches_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/branches{/branch}","tags_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/tags","blobs_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/statuses/{sha}","languages_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/languages","stargazers_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/stargazers","contributors_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/contributors","subscribers_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/subscribers","subscription_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/subscription","commits_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/contents/{+path}","compare_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/merges","archive_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/downloads","issues_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues{/number}","pulls_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls{/number}","milestones_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/milestones{/number}","notifications_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/labels{/name}","releases_url":"https://api.github.com/repos/jacquesg/p5-Git-Raw/releases{/id}","created_at":"2012-08-05T11:39:59Z","updated_at":"2015-03-24T12:55:12Z","pushed_at":"2015-03-25T09:29:25Z","git_url":"git://github.com/jacquesg/p5-Git-Raw.git","ssh_url":"git@github.com:jacquesg/p5-Git-Raw.git","clone_url":"https://github.com/jacquesg/p5-Git-Raw.git","svn_url":"https://github.com/jacquesg/p5-Git-Raw","homepage":"http://metacpan.org/release/Git-Raw/","size":7961,"stargazers_count":21,"watchers_count":21,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls/160"},"html":{"href":"https://github.com/jacquesg/p5-Git-Raw/pull/160"},"issue":{"href":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues/160"},"comments":{"href":"https://api.github.com/repos/jacquesg/p5-Git-Raw/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jacquesg/p5-Git-Raw/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/jacquesg/p5-Git-Raw/statuses/bd0e0c723c500d824fbbde2f7d1dd889f8910a78"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":21,"deletions":21,"changed_files":3}}