Add a script to download and apply patches directly from GMane
[msysgit/mtrensch.git] / bin / apply-from-gmane.sh
blobca1de564f9e2ad5d34617db3b5b679ccbb57c802
1 #!/bin/sh
3 URL="$1"
5 case "$URL" in
6 http://*|article.gmane.org*) ;;
7 *) URL=http://article.gmane.org/gmane.comp.version-control.msysgit/$1;;
8 esac
10 case "$URL" in
11 */raw) ;;
12 *) URL=$URL/raw;;
13 esac
15 curl $URL | git am --whitespace=fix -s