mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
37 lines
453 B
Bash
Executable file
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 \
|
|
"$@"
|