{"action":"opened","issue":{"url":"https://api.github.com/repos/ropensci/git2r/issues/249","repository_url":"https://api.github.com/repos/ropensci/git2r","labels_url":"https://api.github.com/repos/ropensci/git2r/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/git2r/issues/249/comments","events_url":"https://api.github.com/repos/ropensci/git2r/issues/249/events","html_url":"https://github.com/ropensci/git2r/issues/249","id":169767482,"number":249,"title":"reflog() is very chatty","user":{"login":"jennybc","id":599454,"avatar_url":"https://avatars.githubusercontent.com/u/599454?v=3","gravatar_id":"","url":"https://api.github.com/users/jennybc","html_url":"https://github.com/jennybc","followers_url":"https://api.github.com/users/jennybc/followers","following_url":"https://api.github.com/users/jennybc/following{/other_user}","gists_url":"https://api.github.com/users/jennybc/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybc/subscriptions","organizations_url":"https://api.github.com/users/jennybc/orgs","repos_url":"https://api.github.com/users/jennybc/repos","events_url":"https://api.github.com/users/jennybc/events{/privacy}","received_events_url":"https://api.github.com/users/jennybc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-06T21:31:44Z","updated_at":"2016-08-06T21:31:44Z","closed_at":null,"body":"The behaviour of `reflog()` seems a bit nonstandard. It feels like show/print is baked into the act of retrieving the reflog. So, even if I assign the reflog to an object or extract a single component, the entire object is shown.\r\n\r\n``` r\r\n## this is the only call where I expect to see full reflog printed to screen\r\nreflog(gr)\r\n#> [77c8a79] HEAD@{0}: reset: moving to 77c8a7994d63c20d4ec9dbcb925f3a857ceed57a\r\n#> [6bded0e] HEAD@{1}: commit: second commit\r\n#> [77c8a79] HEAD@{2}: commit (initial): first commit\r\nclass(reflog(gr))\r\n#> [77c8a79] HEAD@{0}: reset: moving to 77c8a7994d63c20d4ec9dbcb925f3a857ceed57a\r\n#> [6bded0e] HEAD@{1}: commit: second commit\r\n#> [77c8a79] HEAD@{2}: commit (initial): first commit\r\n#> [1] \"list\"\r\nreflog(gr)[[1]]\r\n#> [77c8a79] HEAD@{0}: reset: moving to 77c8a7994d63c20d4ec9dbcb925f3a857ceed57a\r\n#> [6bded0e] HEAD@{1}: commit: second commit\r\n#> [77c8a79] HEAD@{2}: commit (initial): first commit\r\n#> [77c8a79] HEAD@{0}: reset: moving to 77c8a7994d63c20d4ec9dbcb925f3a857ceed57a\r\nrl <- reflog(gr)\r\n#> [77c8a79] HEAD@{0}: reset: moving to 77c8a7994d63c20d4ec9dbcb925f3a857ceed57a\r\n#> [6bded0e] HEAD@{1}: commit: second commit\r\n#> [77c8a79] HEAD@{2}: commit (initial): first commit\r\n```\r\n\r\n\r\nI see that `verbose` controls this behaviour. Perhaps it should default to `FALSE`? But then my first call would not print the object, which would also be a surprise. Is this a design predicament because there's no class/methods for the list of reflog entries, but rather only for the individual entries?"}}
{"actor":{"display_login":"jennybc"}}