{"action":"created","issue":{"url":"https://api.github.com/repos/github-for-unity/Unity/issues/961","repository_url":"https://api.github.com/repos/github-for-unity/Unity","labels_url":"https://api.github.com/repos/github-for-unity/Unity/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/github-for-unity/Unity/issues/961/comments","events_url":"https://api.github.com/repos/github-for-unity/Unity/issues/961/events","html_url":"https://github.com/github-for-unity/Unity/pull/961","id":378968990,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NTQ4NTIw","number":961,"title":"File History","user":{"login":"sambonfire","id":26911387,"node_id":"MDQ6VXNlcjI2OTExMzg3","avatar_url":"https://avatars3.githubusercontent.com/u/26911387?v=4","gravatar_id":"","url":"https://api.github.com/users/sambonfire","html_url":"https://github.com/sambonfire","followers_url":"https://api.github.com/users/sambonfire/followers","following_url":"https://api.github.com/users/sambonfire/following{/other_user}","gists_url":"https://api.github.com/users/sambonfire/gists{/gist_id}","starred_url":"https://api.github.com/users/sambonfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sambonfire/subscriptions","organizations_url":"https://api.github.com/users/sambonfire/orgs","repos_url":"https://api.github.com/users/sambonfire/repos","events_url":"https://api.github.com/users/sambonfire/events{/privacy}","received_events_url":"https://api.github.com/users/sambonfire/received_events","type":"User","site_admin":false},"labels":[{"id":633049058,"node_id":"MDU6TGFiZWw2MzMwNDkwNTg=","url":"https://api.github.com/repos/github-for-unity/Unity/labels/work-in-progress","name":"work-in-progress","color":"1f7a7a","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-09T00:02:51Z","updated_at":"2019-01-02T13:17:23Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/github-for-unity/Unity/pulls/961","html_url":"https://github.com/github-for-unity/Unity/pull/961","diff_url":"https://github.com/github-for-unity/Unity/pull/961.diff","patch_url":"https://github.com/github-for-unity/Unity/pull/961.patch"},"body":"### Description of the Change\r\n\r\nI'm submitting this PR right now mostly for feedback; there are a handful of things that I'd still like to fix/cleanup; I just want early feedback!\r\n\r\nI wanted to be able to display a window showing the history of a single file.  On this file history view, users should be able to \"check out\" an old version of the file.  This is a common theme in game development -- just wanting to roll back one file to test vs. all files in a change.\r\n\r\nIn order to accomplish this, 2 new commands were added to the git client:\r\n - log history of a file\r\n - checkout a set of files at a specific change\r\n\r\nI also made some interfaces public; this was mostly because I initially started developing the user interface outside of the github plugin because I wasn't sure you'd want it.  I've left these changes in this PR because I think that they'll be worthwhile in the future.\r\n\r\nTo view file history, users can select files in the project file explorer, right click on them, then select Git -> History.  This pops up a new window showing the history of the selected file(s).\r\n\r\n### Alternate Designs\r\n\r\nA new view could have been built into the main github window.\r\n\r\n### Benefits\r\n\r\nUsers can quickly view history of a single file and revert to any point in history with just a few clicks.\r\n\r\n### Possible Drawbacks\r\n\r\nCurrently, there is no checks to see if the file has modifications.  As is, the checkout is destructive and this could lead to data loss.  I plan on fixing this by adding a confirmation dialog.\r\n\r\n### Applicable Issues\r\n\r\n#948, #947 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/github-for-unity/Unity/issues/comments/450860868","html_url":"https://github.com/github-for-unity/Unity/pull/961#issuecomment-450860868","issue_url":"https://api.github.com/repos/github-for-unity/Unity/issues/961","id":450860868,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDg2MDg2OA==","user":{"login":"StanleyGoldman","id":417571,"node_id":"MDQ6VXNlcjQxNzU3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/417571?v=4","gravatar_id":"","url":"https://api.github.com/users/StanleyGoldman","html_url":"https://github.com/StanleyGoldman","followers_url":"https://api.github.com/users/StanleyGoldman/followers","following_url":"https://api.github.com/users/StanleyGoldman/following{/other_user}","gists_url":"https://api.github.com/users/StanleyGoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/StanleyGoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StanleyGoldman/subscriptions","organizations_url":"https://api.github.com/users/StanleyGoldman/orgs","repos_url":"https://api.github.com/users/StanleyGoldman/repos","events_url":"https://api.github.com/users/StanleyGoldman/events{/privacy}","received_events_url":"https://api.github.com/users/StanleyGoldman/received_events","type":"User","site_admin":true},"created_at":"2019-01-02T13:17:23Z","updated_at":"2019-01-02T13:17:23Z","author_association":"MEMBER","body":"Happy New Year. This is on my radar this week."}}
{"actor":{"display_login":"StanleyGoldman"}}