{"action":"created","comment":{"url":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/comments/37818964","id":37818964,"diff_hunk":"@@ -161,105 +161,123 @@ func (r *Repository) ResolveTag(name string) (vcs.CommitID, error) {\n \treturn commitID, nil\n }\n \n-// branchCounts returns the behind/ahead commit counts information for branch, against base branch.\n-func (r *Repository) branchCounts(branch, base string) (behind, ahead uint, err error) {\n-\tif err := checkSpecArgSafety(branch); err != nil {\n-\t\treturn 0, 0, err\n-\t}\n-\tif err := checkSpecArgSafety(base); err != nil {\n-\t\treturn 0, 0, err\n-\t}\n+// stringFilter helps manage a list of string filters.\n+type stringFilter struct{ only map[string]struct{} }","path":"vcs/gitcmd/repo.go","position":13,"original_position":13,"commit_id":"0110415ffd51b1c933e63db77c107cd64df975ca","original_commit_id":"0110415ffd51b1c933e63db77c107cd64df975ca","user":{"login":"gbbr","id":6686356,"avatar_url":"https://avatars.githubusercontent.com/u/6686356?v=3","gravatar_id":"","url":"https://api.github.com/users/gbbr","html_url":"https://github.com/gbbr","followers_url":"https://api.github.com/users/gbbr/followers","following_url":"https://api.github.com/users/gbbr/following{/other_user}","gists_url":"https://api.github.com/users/gbbr/gists{/gist_id}","starred_url":"https://api.github.com/users/gbbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbbr/subscriptions","organizations_url":"https://api.github.com/users/gbbr/orgs","repos_url":"https://api.github.com/users/gbbr/repos","events_url":"https://api.github.com/users/gbbr/events{/privacy}","received_events_url":"https://api.github.com/users/gbbr/received_events","type":"User","site_admin":false},"body":":+1: agreed","created_at":"2015-08-24T23:51:33Z","updated_at":"2015-08-24T23:51:33Z","html_url":"https://github.com/sourcegraph/go-vcs/pull/68#discussion_r37818964","pull_request_url":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/comments/37818964"},"html":{"href":"https://github.com/sourcegraph/go-vcs/pull/68#discussion_r37818964"},"pull_request":{"href":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/68","id":43168323,"html_url":"https://github.com/sourcegraph/go-vcs/pull/68","diff_url":"https://github.com/sourcegraph/go-vcs/pull/68.diff","patch_url":"https://github.com/sourcegraph/go-vcs/pull/68.patch","issue_url":"https://api.github.com/repos/sourcegraph/go-vcs/issues/68","number":68,"state":"open","locked":false,"title":"Added flag to allow requesting branches merged into a branch.","user":{"login":"gbbr","id":6686356,"avatar_url":"https://avatars.githubusercontent.com/u/6686356?v=3","gravatar_id":"","url":"https://api.github.com/users/gbbr","html_url":"https://github.com/gbbr","followers_url":"https://api.github.com/users/gbbr/followers","following_url":"https://api.github.com/users/gbbr/following{/other_user}","gists_url":"https://api.github.com/users/gbbr/gists{/gist_id}","starred_url":"https://api.github.com/users/gbbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbbr/subscriptions","organizations_url":"https://api.github.com/users/gbbr/orgs","repos_url":"https://api.github.com/users/gbbr/repos","events_url":"https://api.github.com/users/gbbr/events{/privacy}","received_events_url":"https://api.github.com/users/gbbr/received_events","type":"User","site_admin":false},"body":"* Added a feature to Branches method in gitcmd that allows retrieving\r\nmerged branches.  \r\n* Refactored code to be less repetitive and reduced branches iteration to 1.","created_at":"2015-08-24T12:19:56Z","updated_at":"2015-08-24T23:51:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7c935edfec35c763de619294447398caaa750b8","assignee":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/68/commits","review_comments_url":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/68/comments","review_comment_url":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sourcegraph/go-vcs/issues/68/comments","statuses_url":"https://api.github.com/repos/sourcegraph/go-vcs/statuses/0110415ffd51b1c933e63db77c107cd64df975ca","head":{"label":"sourcegraph:03-hooks","ref":"03-hooks","sha":"0110415ffd51b1c933e63db77c107cd64df975ca","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":10431493,"name":"go-vcs","full_name":"sourcegraph/go-vcs","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/go-vcs","description":"manipulate and inspect VCS repositories in Go","fork":false,"url":"https://api.github.com/repos/sourcegraph/go-vcs","forks_url":"https://api.github.com/repos/sourcegraph/go-vcs/forks","keys_url":"https://api.github.com/repos/sourcegraph/go-vcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/go-vcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/go-vcs/teams","hooks_url":"https://api.github.com/repos/sourcegraph/go-vcs/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/go-vcs/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/go-vcs/events","assignees_url":"https://api.github.com/repos/sourcegraph/go-vcs/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/go-vcs/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/go-vcs/tags","blobs_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/go-vcs/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/go-vcs/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/go-vcs/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/go-vcs/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/go-vcs/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/go-vcs/subscription","commits_url":"https://api.github.com/repos/sourcegraph/go-vcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/go-vcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/go-vcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/go-vcs/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/go-vcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/go-vcs/merges","archive_url":"https://api.github.com/repos/sourcegraph/go-vcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/go-vcs/downloads","issues_url":"https://api.github.com/repos/sourcegraph/go-vcs/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/go-vcs/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/go-vcs/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/go-vcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/go-vcs/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/go-vcs/releases{/id}","created_at":"2013-06-02T02:36:18Z","updated_at":"2015-07-27T00:26:17Z","pushed_at":"2015-08-24T13:22:45Z","git_url":"git://github.com/sourcegraph/go-vcs.git","ssh_url":"git@github.com:sourcegraph/go-vcs.git","clone_url":"https://github.com/sourcegraph/go-vcs.git","svn_url":"https://github.com/sourcegraph/go-vcs","homepage":"https://sourcegraph.com/sourcegraph/go-vcs","size":1474,"stargazers_count":30,"watchers_count":30,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":30,"default_branch":"master"}},"base":{"label":"sourcegraph:master","ref":"master","sha":"b572071b221600f854bad8e81dd2d6cf63852019","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":10431493,"name":"go-vcs","full_name":"sourcegraph/go-vcs","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/go-vcs","description":"manipulate and inspect VCS repositories in Go","fork":false,"url":"https://api.github.com/repos/sourcegraph/go-vcs","forks_url":"https://api.github.com/repos/sourcegraph/go-vcs/forks","keys_url":"https://api.github.com/repos/sourcegraph/go-vcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/go-vcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/go-vcs/teams","hooks_url":"https://api.github.com/repos/sourcegraph/go-vcs/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/go-vcs/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/go-vcs/events","assignees_url":"https://api.github.com/repos/sourcegraph/go-vcs/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/go-vcs/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/go-vcs/tags","blobs_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/go-vcs/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/go-vcs/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/go-vcs/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/go-vcs/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/go-vcs/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/go-vcs/subscription","commits_url":"https://api.github.com/repos/sourcegraph/go-vcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/go-vcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/go-vcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/go-vcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/go-vcs/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/go-vcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/go-vcs/merges","archive_url":"https://api.github.com/repos/sourcegraph/go-vcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/go-vcs/downloads","issues_url":"https://api.github.com/repos/sourcegraph/go-vcs/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/go-vcs/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/go-vcs/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/go-vcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/go-vcs/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/go-vcs/releases{/id}","created_at":"2013-06-02T02:36:18Z","updated_at":"2015-07-27T00:26:17Z","pushed_at":"2015-08-24T13:22:45Z","git_url":"git://github.com/sourcegraph/go-vcs.git","ssh_url":"git@github.com:sourcegraph/go-vcs.git","clone_url":"https://github.com/sourcegraph/go-vcs.git","svn_url":"https://github.com/sourcegraph/go-vcs","homepage":"https://sourcegraph.com/sourcegraph/go-vcs","size":1474,"stargazers_count":30,"watchers_count":30,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/68"},"html":{"href":"https://github.com/sourcegraph/go-vcs/pull/68"},"issue":{"href":"https://api.github.com/repos/sourcegraph/go-vcs/issues/68"},"comments":{"href":"https://api.github.com/repos/sourcegraph/go-vcs/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sourcegraph/go-vcs/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/sourcegraph/go-vcs/statuses/0110415ffd51b1c933e63db77c107cd64df975ca"}}}}