package
Fetch github patch for public or private repos
npm install fetch-patchGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
fetch a patch from github (works for private repos too)
Useful for piping into git am
NOTE: requires io.js v1.x+ or node v4
$ npm install -g fetch-patch$ fetch-patch help
fetch-patch
fetch a patch from github (works for private repos too)
usage:
fetch-patch <patch url>
fetch-patch <repo owner> <repo name> <pr #>
note:
in order for private repositories to work correctly, one must create a
github token and place it in ~/.github_token$ fetch-patch https://github.com/iojs/io.js/pull/1457.patch | git am
# or
$ fetch-patch iojs io.js 1457 | git amEvan Lucas
MIT (See LICENSE for more info)
evanlucas
evanlucas@me.com