{"action":"created","comment":{"url":"https://api.github.com/repos/ropensci/git2r/pulls/comments/38811026","id":38811026,"diff_hunk":"@@ -350,3 +350,44 @@ setMethod(\"remote_url\",\n               .Call(git2r_remote_url, repo, remote)\n           }\n )\n+\n+\n+##' List references in a remote repository\n+##'\n+##' Displays references available in a remote repository along with the associated commit IDs.\n+##' @rdname ls_remote-methods\n+##' @docType methods\n+##' @param name Character vector with the with \"remote\" repository URL to query.\n+##' @return Character vector for each reference with the associated commit IDs.\n+##' @param repo an optional repository object used to store data temporarily.\n+##' @keywords methods\n+##' @examples\n+##' \\dontrun{\n+##' ls_remote(\"https://github.com/ropensci/git2r\")\n+##' }\n+##' @export\n+setGeneric(\"ls_remote\",\n+           signature = c(\"name\", \"repo\"),\n+           function(name, repo)","path":"R/remote.r","position":22,"original_position":22,"commit_id":"916aa33ca8dbfbb39fefa57c512032c1d767feba","original_commit_id":"916aa33ca8dbfbb39fefa57c512032c1d767feba","user":{"login":"jimhester","id":205275,"avatar_url":"https://avatars.githubusercontent.com/u/205275?v=3","gravatar_id":"","url":"https://api.github.com/users/jimhester","html_url":"https://github.com/jimhester","followers_url":"https://api.github.com/users/jimhester/followers","following_url":"https://api.github.com/users/jimhester/following{/other_user}","gists_url":"https://api.github.com/users/jimhester/gists{/gist_id}","starred_url":"https://api.github.com/users/jimhester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimhester/subscriptions","organizations_url":"https://api.github.com/users/jimhester/orgs","repos_url":"https://api.github.com/users/jimhester/repos","events_url":"https://api.github.com/users/jimhester/events{/privacy}","received_events_url":"https://api.github.com/users/jimhester/received_events","type":"User","site_admin":false},"body":"You can also specify the remote by name rather than the full URL if you use an existing repo, so it is worth keeping in that case.","created_at":"2015-09-05T14:10:49Z","updated_at":"2015-09-05T14:10:49Z","html_url":"https://github.com/ropensci/git2r/pull/172#discussion_r38811026","pull_request_url":"https://api.github.com/repos/ropensci/git2r/pulls/172","_links":{"self":{"href":"https://api.github.com/repos/ropensci/git2r/pulls/comments/38811026"},"html":{"href":"https://github.com/ropensci/git2r/pull/172#discussion_r38811026"},"pull_request":{"href":"https://api.github.com/repos/ropensci/git2r/pulls/172"}}},"pull_request":{"url":"https://api.github.com/repos/ropensci/git2r/pulls/172","id":44224223,"html_url":"https://github.com/ropensci/git2r/pull/172","diff_url":"https://github.com/ropensci/git2r/pull/172.diff","patch_url":"https://github.com/ropensci/git2r/pull/172.patch","issue_url":"https://api.github.com/repos/ropensci/git2r/issues/172","number":172,"state":"open","locked":false,"title":"ls_remote function","user":{"login":"jimhester","id":205275,"avatar_url":"https://avatars.githubusercontent.com/u/205275?v=3","gravatar_id":"","url":"https://api.github.com/users/jimhester","html_url":"https://github.com/jimhester","followers_url":"https://api.github.com/users/jimhester/followers","following_url":"https://api.github.com/users/jimhester/following{/other_user}","gists_url":"https://api.github.com/users/jimhester/gists{/gist_id}","starred_url":"https://api.github.com/users/jimhester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimhester/subscriptions","organizations_url":"https://api.github.com/users/jimhester/orgs","repos_url":"https://api.github.com/users/jimhester/repos","events_url":"https://api.github.com/users/jimhester/events{/privacy}","received_events_url":"https://api.github.com/users/jimhester/received_events","type":"User","site_admin":false},"body":"Analogous to git ls-remote, returns all references from a remote\r\nrepository.\r\n\r\nFixes #130\r\n\r\nI added documentation, tests and a note to NEWS.  The libgit2 functions require a repository object to work, but the only information you really need for this is the remote URL.  The interface allows you to pass a repository object if you want, otherwise it simply creates a temporary object in `tempdir()` and uses that.","created_at":"2015-09-04T14:33:02Z","updated_at":"2015-09-05T14:10:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54ee2ecc994c993d6f52806dfaa2fbc3b636a1ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ropensci/git2r/pulls/172/commits","review_comments_url":"https://api.github.com/repos/ropensci/git2r/pulls/172/comments","review_comment_url":"https://api.github.com/repos/ropensci/git2r/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ropensci/git2r/issues/172/comments","statuses_url":"https://api.github.com/repos/ropensci/git2r/statuses/916aa33ca8dbfbb39fefa57c512032c1d767feba","head":{"label":"jimhester:ls_remote","ref":"ls_remote","sha":"916aa33ca8dbfbb39fefa57c512032c1d767feba","user":{"login":"jimhester","id":205275,"avatar_url":"https://avatars.githubusercontent.com/u/205275?v=3","gravatar_id":"","url":"https://api.github.com/users/jimhester","html_url":"https://github.com/jimhester","followers_url":"https://api.github.com/users/jimhester/followers","following_url":"https://api.github.com/users/jimhester/following{/other_user}","gists_url":"https://api.github.com/users/jimhester/gists{/gist_id}","starred_url":"https://api.github.com/users/jimhester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimhester/subscriptions","organizations_url":"https://api.github.com/users/jimhester/orgs","repos_url":"https://api.github.com/users/jimhester/repos","events_url":"https://api.github.com/users/jimhester/events{/privacy}","received_events_url":"https://api.github.com/users/jimhester/received_events","type":"User","site_admin":false},"repo":{"id":41915235,"name":"git2r","full_name":"jimhester/git2r","owner":{"login":"jimhester","id":205275,"avatar_url":"https://avatars.githubusercontent.com/u/205275?v=3","gravatar_id":"","url":"https://api.github.com/users/jimhester","html_url":"https://github.com/jimhester","followers_url":"https://api.github.com/users/jimhester/followers","following_url":"https://api.github.com/users/jimhester/following{/other_user}","gists_url":"https://api.github.com/users/jimhester/gists{/gist_id}","starred_url":"https://api.github.com/users/jimhester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimhester/subscriptions","organizations_url":"https://api.github.com/users/jimhester/orgs","repos_url":"https://api.github.com/users/jimhester/repos","events_url":"https://api.github.com/users/jimhester/events{/privacy}","received_events_url":"https://api.github.com/users/jimhester/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimhester/git2r","description":"R bindings to the libgit2 library","fork":true,"url":"https://api.github.com/repos/jimhester/git2r","forks_url":"https://api.github.com/repos/jimhester/git2r/forks","keys_url":"https://api.github.com/repos/jimhester/git2r/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimhester/git2r/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimhester/git2r/teams","hooks_url":"https://api.github.com/repos/jimhester/git2r/hooks","issue_events_url":"https://api.github.com/repos/jimhester/git2r/issues/events{/number}","events_url":"https://api.github.com/repos/jimhester/git2r/events","assignees_url":"https://api.github.com/repos/jimhester/git2r/assignees{/user}","branches_url":"https://api.github.com/repos/jimhester/git2r/branches{/branch}","tags_url":"https://api.github.com/repos/jimhester/git2r/tags","blobs_url":"https://api.github.com/repos/jimhester/git2r/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimhester/git2r/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimhester/git2r/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimhester/git2r/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimhester/git2r/statuses/{sha}","languages_url":"https://api.github.com/repos/jimhester/git2r/languages","stargazers_url":"https://api.github.com/repos/jimhester/git2r/stargazers","contributors_url":"https://api.github.com/repos/jimhester/git2r/contributors","subscribers_url":"https://api.github.com/repos/jimhester/git2r/subscribers","subscription_url":"https://api.github.com/repos/jimhester/git2r/subscription","commits_url":"https://api.github.com/repos/jimhester/git2r/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimhester/git2r/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimhester/git2r/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimhester/git2r/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimhester/git2r/contents/{+path}","compare_url":"https://api.github.com/repos/jimhester/git2r/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimhester/git2r/merges","archive_url":"https://api.github.com/repos/jimhester/git2r/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimhester/git2r/downloads","issues_url":"https://api.github.com/repos/jimhester/git2r/issues{/number}","pulls_url":"https://api.github.com/repos/jimhester/git2r/pulls{/number}","milestones_url":"https://api.github.com/repos/jimhester/git2r/milestones{/number}","notifications_url":"https://api.github.com/repos/jimhester/git2r/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimhester/git2r/labels{/name}","releases_url":"https://api.github.com/repos/jimhester/git2r/releases{/id}","created_at":"2015-09-04T12:44:33Z","updated_at":"2015-09-04T12:44:35Z","pushed_at":"2015-09-04T14:25:55Z","git_url":"git://github.com/jimhester/git2r.git","ssh_url":"git@github.com:jimhester/git2r.git","clone_url":"https://github.com/jimhester/git2r.git","svn_url":"https://github.com/jimhester/git2r","homepage":"","size":8808,"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":"master"}},"base":{"label":"ropensci:master","ref":"master","sha":"d1b088d552aaaa00bda4e22b0d1991a83ac15982","user":{"login":"ropensci","id":1200269,"avatar_url":"https://avatars.githubusercontent.com/u/1200269?v=3","gravatar_id":"","url":"https://api.github.com/users/ropensci","html_url":"https://github.com/ropensci","followers_url":"https://api.github.com/users/ropensci/followers","following_url":"https://api.github.com/users/ropensci/following{/other_user}","gists_url":"https://api.github.com/users/ropensci/gists{/gist_id}","starred_url":"https://api.github.com/users/ropensci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ropensci/subscriptions","organizations_url":"https://api.github.com/users/ropensci/orgs","repos_url":"https://api.github.com/users/ropensci/repos","events_url":"https://api.github.com/users/ropensci/events{/privacy}","received_events_url":"https://api.github.com/users/ropensci/received_events","type":"Organization","site_admin":false},"repo":{"id":15494155,"name":"git2r","full_name":"ropensci/git2r","owner":{"login":"ropensci","id":1200269,"avatar_url":"https://avatars.githubusercontent.com/u/1200269?v=3","gravatar_id":"","url":"https://api.github.com/users/ropensci","html_url":"https://github.com/ropensci","followers_url":"https://api.github.com/users/ropensci/followers","following_url":"https://api.github.com/users/ropensci/following{/other_user}","gists_url":"https://api.github.com/users/ropensci/gists{/gist_id}","starred_url":"https://api.github.com/users/ropensci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ropensci/subscriptions","organizations_url":"https://api.github.com/users/ropensci/orgs","repos_url":"https://api.github.com/users/ropensci/repos","events_url":"https://api.github.com/users/ropensci/events{/privacy}","received_events_url":"https://api.github.com/users/ropensci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ropensci/git2r","description":"R bindings to the libgit2 library","fork":false,"url":"https://api.github.com/repos/ropensci/git2r","forks_url":"https://api.github.com/repos/ropensci/git2r/forks","keys_url":"https://api.github.com/repos/ropensci/git2r/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ropensci/git2r/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ropensci/git2r/teams","hooks_url":"https://api.github.com/repos/ropensci/git2r/hooks","issue_events_url":"https://api.github.com/repos/ropensci/git2r/issues/events{/number}","events_url":"https://api.github.com/repos/ropensci/git2r/events","assignees_url":"https://api.github.com/repos/ropensci/git2r/assignees{/user}","branches_url":"https://api.github.com/repos/ropensci/git2r/branches{/branch}","tags_url":"https://api.github.com/repos/ropensci/git2r/tags","blobs_url":"https://api.github.com/repos/ropensci/git2r/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ropensci/git2r/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ropensci/git2r/git/refs{/sha}","trees_url":"https://api.github.com/repos/ropensci/git2r/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ropensci/git2r/statuses/{sha}","languages_url":"https://api.github.com/repos/ropensci/git2r/languages","stargazers_url":"https://api.github.com/repos/ropensci/git2r/stargazers","contributors_url":"https://api.github.com/repos/ropensci/git2r/contributors","subscribers_url":"https://api.github.com/repos/ropensci/git2r/subscribers","subscription_url":"https://api.github.com/repos/ropensci/git2r/subscription","commits_url":"https://api.github.com/repos/ropensci/git2r/commits{/sha}","git_commits_url":"https://api.github.com/repos/ropensci/git2r/git/commits{/sha}","comments_url":"https://api.github.com/repos/ropensci/git2r/comments{/number}","issue_comment_url":"https://api.github.com/repos/ropensci/git2r/issues/comments{/number}","contents_url":"https://api.github.com/repos/ropensci/git2r/contents/{+path}","compare_url":"https://api.github.com/repos/ropensci/git2r/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ropensci/git2r/merges","archive_url":"https://api.github.com/repos/ropensci/git2r/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ropensci/git2r/downloads","issues_url":"https://api.github.com/repos/ropensci/git2r/issues{/number}","pulls_url":"https://api.github.com/repos/ropensci/git2r/pulls{/number}","milestones_url":"https://api.github.com/repos/ropensci/git2r/milestones{/number}","notifications_url":"https://api.github.com/repos/ropensci/git2r/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ropensci/git2r/labels{/name}","releases_url":"https://api.github.com/repos/ropensci/git2r/releases{/id}","created_at":"2013-12-28T15:06:53Z","updated_at":"2015-09-04T13:30:08Z","pushed_at":"2015-09-04T14:33:03Z","git_url":"git://github.com/ropensci/git2r.git","ssh_url":"git@github.com:ropensci/git2r.git","clone_url":"https://github.com/ropensci/git2r.git","svn_url":"https://github.com/ropensci/git2r","homepage":"","size":8808,"stargazers_count":65,"watchers_count":65,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":21,"forks":17,"open_issues":21,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ropensci/git2r/pulls/172"},"html":{"href":"https://github.com/ropensci/git2r/pull/172"},"issue":{"href":"https://api.github.com/repos/ropensci/git2r/issues/172"},"comments":{"href":"https://api.github.com/repos/ropensci/git2r/issues/172/comments"},"review_comments":{"href":"https://api.github.com/repos/ropensci/git2r/pulls/172/comments"},"review_comment":{"href":"https://api.github.com/repos/ropensci/git2r/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ropensci/git2r/pulls/172/commits"},"statuses":{"href":"https://api.github.com/repos/ropensci/git2r/statuses/916aa33ca8dbfbb39fefa57c512032c1d767feba"}}}}