{"action":"created","issue":{"url":"https://api.github.com/repos/magit/orgit/issues/22","repository_url":"https://api.github.com/repos/magit/orgit","labels_url":"https://api.github.com/repos/magit/orgit/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/magit/orgit/issues/22/comments","events_url":"https://api.github.com/repos/magit/orgit/issues/22/events","html_url":"https://github.com/magit/orgit/issues/22","id":290177848,"node_id":"MDU6SXNzdWUyOTAxNzc4NDg=","number":22,"title":"store link to individual commit when in log?","user":{"login":"unhammer","id":56868,"node_id":"MDQ6VXNlcjU2ODY4","avatar_url":"https://avatars1.githubusercontent.com/u/56868?v=4","gravatar_id":"","url":"https://api.github.com/users/unhammer","html_url":"https://github.com/unhammer","followers_url":"https://api.github.com/users/unhammer/followers","following_url":"https://api.github.com/users/unhammer/following{/other_user}","gists_url":"https://api.github.com/users/unhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/unhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unhammer/subscriptions","organizations_url":"https://api.github.com/users/unhammer/orgs","repos_url":"https://api.github.com/users/unhammer/repos","events_url":"https://api.github.com/users/unhammer/events{/privacy}","received_events_url":"https://api.github.com/users/unhammer/received_events","type":"User","site_admin":false},"labels":[{"id":122183822,"node_id":"MDU6TGFiZWwxMjIxODM4MjI=","url":"https://api.github.com/repos/magit/orgit/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-20T09:09:16Z","updated_at":"2018-06-18T20:34:51Z","closed_at":"2018-02-17T21:22:19Z","author_association":"NONE","body":"When I'm in the log (e.g. after doing `ll`) and the buffer is e.g.\r\n\r\n```\r\n  deadbee * master origin/master origin/HEAD Revert \"use the new database column\"\r\n[]badabee * use the new database column\r\n  3141593 * implement frobnication\r\n```\r\n\r\nand I do `C-c l` / `org-store-link`, will store `orgit-log:~/src/project/::master`. Would it be possible to instead get the commit under point, e.g. `orgit-rev:~/src/project/::badabee`?"},"comment":{"url":"https://api.github.com/repos/magit/orgit/issues/comments/398186599","html_url":"https://github.com/magit/orgit/issues/22#issuecomment-398186599","issue_url":"https://api.github.com/repos/magit/orgit/issues/22","id":398186599,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODE4NjU5OQ==","user":{"login":"tarsius","id":25046,"node_id":"MDQ6VXNlcjI1MDQ2","avatar_url":"https://avatars2.githubusercontent.com/u/25046?v=4","gravatar_id":"","url":"https://api.github.com/users/tarsius","html_url":"https://github.com/tarsius","followers_url":"https://api.github.com/users/tarsius/followers","following_url":"https://api.github.com/users/tarsius/following{/other_user}","gists_url":"https://api.github.com/users/tarsius/gists{/gist_id}","starred_url":"https://api.github.com/users/tarsius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarsius/subscriptions","organizations_url":"https://api.github.com/users/tarsius/orgs","repos_url":"https://api.github.com/users/tarsius/repos","events_url":"https://api.github.com/users/tarsius/events{/privacy}","received_events_url":"https://api.github.com/users/tarsius/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T20:34:51Z","updated_at":"2018-06-18T20:34:51Z","author_association":"MEMBER","body":"Both linking to the commit at point and linking to the log in the current buffer are useful. `org-store-link` can only do one of those things by default. It can do another thing with a single prefix argument. Two or three prefix arguments have specific meanings. So `org-store-link` can do one out of two things.\r\n\r\n`org-rev-store` already behaves differently when a prefix argument is used, it tries to link to a ref instead of to a commit hash. `org-log-store` could be changed to behave the opposite way when using a prefix argument (that's what @codygman is asking for I believe).\r\n\r\nThat means that there is no mechanism left that is directly supported by `org-store-link` to do something other than the default. And that means that `org-store-link` has to continue to store a link to the log in the current buffer by default -- there is no mechanism left to *alternatively* do that. (Short of moving to the end of the buffer to the \"Show more commits\" line (provided there is one) because everywhere else there is \"commit at point\".\r\n\r\nThe mechanism used to alternatively store a link to the commit on the other hand as it exists now on the other hand works because it is not based on something that `org-store-link` knows about (prefix arguments) but the region-based magit selection.\r\n\r\nAll in all having to press `C-SPC` (or `v` if you use Evil) works well enough."}}
{"actor":{"display_login":"tarsius"}}