repo.or.cz
/
msysgit
/
mtrensch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add a script to download and apply patches directly from GMane
[msysgit/mtrensch.git]
/
bin
/
apply-from-gmane.sh
blob
ca1de564f9e2ad5d34617db3b5b679ccbb57c802
1
#!/bin/sh
2
3
URL
=
"
$1
"
4
5
case
"
$URL
"
in
6
http
://*
|article.gmane.org
*) ;;
7
*)
URL
=
http
://
article.gmane.org
/
gmane.comp.version-control.msysgit
/
$1
;;
8
esac
9
10
case
"
$URL
"
in
11
*/
raw
) ;;
12
*)
URL
=
$URL
/
raw
;;
13
esac
14
15
curl
$URL
| git am
--whitespace
=
fix
-s