{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/opam/issues/2765","repository_url":"https://api.github.com/repos/ocaml/opam","labels_url":"https://api.github.com/repos/ocaml/opam/issues/2765/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/opam/issues/2765/comments","events_url":"https://api.github.com/repos/ocaml/opam/issues/2765/events","html_url":"https://github.com/ocaml/opam/issues/2765","id":192806057,"number":2765,"title":"[Feature Request] Show somewhere the actually installed git commit","user":{"login":"RalfJung","id":330628,"avatar_url":"https://avatars.githubusercontent.com/u/330628?v=3","gravatar_id":"","url":"https://api.github.com/users/RalfJung","html_url":"https://github.com/RalfJung","followers_url":"https://api.github.com/users/RalfJung/followers","following_url":"https://api.github.com/users/RalfJung/following{/other_user}","gists_url":"https://api.github.com/users/RalfJung/gists{/gist_id}","starred_url":"https://api.github.com/users/RalfJung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RalfJung/subscriptions","organizations_url":"https://api.github.com/users/RalfJung/orgs","repos_url":"https://api.github.com/users/RalfJung/repos","events_url":"https://api.github.com/users/RalfJung/events{/privacy}","received_events_url":"https://api.github.com/users/RalfJung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-01T10:24:47Z","updated_at":"2016-12-01T17:44:29Z","closed_at":null,"body":"When I install a package from an opam repository that refers to a branch of a git repository, there seems to be no easy way to show the actual git commit that was installed. Knowing that git commit is useful e.g. for bugreports, where upstream will typically want to know which version the bug occurred with.\r\n\r\nCurrently, what I do is `cd ~/.opam/$SWITCH/packages.dev/$PACKAGE` followed by `git show`, but I feel like manually diving into opam-managed directories is suboptimal.\r\n\r\n*Note*: I found the flag `--git-version` that most opam commands take, but its description (\"Print the git version if it exists and exit.\") is entirely opaque to me so I have no idea what it does, whether it is related to this request or how to use it. The git version of *what* is it talking about, and what does it mean by a git version \"existing\"?\r\n"},"comment":{"url":"https://api.github.com/repos/ocaml/opam/issues/comments/264241825","html_url":"https://github.com/ocaml/opam/issues/2765#issuecomment-264241825","issue_url":"https://api.github.com/repos/ocaml/opam/issues/2765","id":264241825,"user":{"login":"RalfJung","id":330628,"avatar_url":"https://avatars.githubusercontent.com/u/330628?v=3","gravatar_id":"","url":"https://api.github.com/users/RalfJung","html_url":"https://github.com/RalfJung","followers_url":"https://api.github.com/users/RalfJung/followers","following_url":"https://api.github.com/users/RalfJung/following{/other_user}","gists_url":"https://api.github.com/users/RalfJung/gists{/gist_id}","starred_url":"https://api.github.com/users/RalfJung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RalfJung/subscriptions","organizations_url":"https://api.github.com/users/RalfJung/orgs","repos_url":"https://api.github.com/users/RalfJung/repos","events_url":"https://api.github.com/users/RalfJung/events{/privacy}","received_events_url":"https://api.github.com/users/RalfJung/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T17:44:29Z","updated_at":"2016-12-01T17:44:29Z","body":"> opam 2.0 has a much more flexible opam show format and I will make sure this restriction is lifted.\r\n\r\nGreat, thanks :)"}}
{"actor":{"display_login":"RalfJung"}}