Thanks to iovxw
@ -0,0 +1,3 @@
#!/bin/bash
find . -name "*.patch" -printf "%h\n" | uniq | xargs -I{} bash -c "cd $(pwd)/../{}; git am $(pwd)/{}/*"