git/SE
2009-03-04 11:40:32 -08:00

37 lines
453 B
Bash
Executable file

#!/bin/sh
me='Junio C Hamano <gitster@pobox.com>'
smtp='/usr/bin/msmtp'
to='git@vger.kernel.org'
#to='junkio@cox.net'
#smtp=/var/tmp/smtp-server
while case $# in 0) break ;; esac
do
case "$1" in
--dry-run | -n)
dryrun=--dry-run
;;
--)
shift
break
;;
-*)
echo >&2 "? $1"
exit 1
;;
*)
break
;;
esac
shift
done
git send-email \
--from="$me" \
--envelope-sender="$me" \
--to="$to" \
--smtp-server=$smtp \
$dryrun \
"$@"