rowanj/gitx — pull request #203 by jdelStrother (2013-06-26 11:02:57+00:00)
Title: Use the v3 API for creating gists

Hi there,
As far as I can tell, the "Gist it" button has been dead for a while. This series of commits fixes it up to use the latest version of the github API.

The one part I'm not too sure about is using github.token. If you haven't set this in your config, it'll just post anonymous gists. If you obtain a personal token from https://github.com/settings/applications and set github.token to it, it'll create gists tied to your account. However, github.token dates back from ancient times, and I'm not sure if I should be reusing it in this way (or if old github.token's are still valid for OAuth authentication). Perhaps it should be a new UI field in GitX's preferences rather than a git config value...