Skip to content

Instantly share code, notes, and snippets.

@nfisher
Created December 21, 2017 21:33
Show Gist options
  • Save nfisher/2688e4edb46044b11a2cc765486c759d to your computer and use it in GitHub Desktop.
Save nfisher/2688e4edb46044b11a2cc765486c759d to your computer and use it in GitHub Desktop.
Download PR's as a patch
#!/bin/sh -eu
# example usage: ./pr.sh 72
PR_NUM=$1
curl -L "https://github.com/clojure/clojure/pull/${PR_NUM}.patch" \
-o "pr${PR_NUM}.patch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment