chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
README: Add warning about editing .topdeps manually
[topgit.git]
/
tg-mail.sh
diff --git
a/tg-mail.sh
b/tg-mail.sh
index 7e394b894cc630bf01fcef92fc09956aaed87a77..24e5f67b2742b8edf6fd6213f58d6546a27e013c 100644
(file)
--- a/
tg-mail.sh
+++ b/
tg-mail.sh
@@
-3,6
+3,7
@@
# GPLv2
name=
# GPLv2
name=
+send_email_args=
## Parse options
## Parse options
@@
-10,8
+11,10
@@
name=
while [ -n "$1" ]; do
arg="$1"; shift
case "$arg" in
while [ -n "$1" ]; do
arg="$1"; shift
case "$arg" in
+ -s)
+ send_email_args="$1"; shift;;
-*)
-*)
- echo "Usage: tg [...] mail [NAME]" >&2
+ echo "Usage: tg [...] mail [
-s SEND_EMAIL_ARGS] [
NAME]" >&2
exit 1;;
*)
[ -z "$name" ] || die "name already specified ($name)"
exit 1;;
*)
[ -z "$name" ] || die "name already specified ($name)"
@@
-45,6
+48,6
@@
people=()
# NOTE: git-send-email handles cc itself
# NOTE: git-send-email handles cc itself
-git send-email "${people[@]}" "$patchfile"
+git send-email
$send_email_args
"${people[@]}" "$patchfile"
rm "$patchfile"
rm "$patchfile"