1 2 3 4 5 6
#!/bin/sh -v # args [where to put patches] [smtp server] [destination] git format-patch -o "$1" --inline --subject-prefix=soc --thread origin git send-email --no-chain-reply-to --smtp-server $2 --to $3 --dry-run "$1"