composer/composer — pull request #1241 by 1stvamp (2012-10-21 00:24:30+00:00)
Title: Allow use of Github OAuth2 token stored in git config

There is an existing convention of storing your Github API OAuth access token in your git config, under the section `github` and key `accesstoken`.

This patch makes a quick shell out to `git config` to try and get the token from there and then uses it during the request (without storing it permanently in Composer's config, to avoid having a stale token stored in Composer while it's instead updated by the user in their git config)