summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a985d59)
raw | patch | inline | side by side (parent: a985d59)
author | Ryan Anderson <ryan@michonline.com> | |
Mon, 13 Feb 2006 08:05:15 +0000 (03:05 -0500) | ||
committer | Ryan Anderson <ryan@michonline.com> | |
Mon, 13 Feb 2006 08:32:10 +0000 (03:32 -0500) |
Since Junio used this in an example, and I've personally tried to use it, I
suppose the option should actually exist.
Signed-off-by: Ryan Anderson <ryan@michonline.com>
suppose the option should actually exist.
Signed-off-by: Ryan Anderson <ryan@michonline.com>
Documentation/git-send-email.txt | patch | blob | history | |
git-send-email.perl | patch | blob | history |
index c2f52f58af5868ac2ebcad7259d771a5b578971a..8c58685e280614238143f50df5f97f0777c0470f 100644 (file)
-------
The options available are:
+--cc::
+ Specify a starting "Cc:" value for each email.
+
--chain-reply-to, --no-chain-reply-to::
If this is set, each email will be sent as a reply to the previous
email sent. If disabled with "--no-chain-reply-to", all emails after
diff --git a/git-send-email.perl b/git-send-email.perl
index abffca51884f54d200706d7671a5ddde5219d50b..13b85dddd186b5b769fb8e9b88896b1f89ef7935 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
my $compose_filename = ".msg.$$";
# Variables we fill in automatically, or via prompting:
-my (@to,@cc,$initial_reply_to,$initial_subject,@files,$from,$compose);
+my (@to,@cc,@initial_cc,$initial_reply_to,$initial_subject,@files,$from,$compose);
# Behavior modification variables
my ($chain_reply_to, $smtp_server, $quiet, $suppress_from, $no_signed_off_cc) = (1, "localhost", 0, 0, 0);
"in-reply-to=s" => \$initial_reply_to,
"subject=s" => \$initial_subject,
"to=s" => \@to,
+ "cc=s" => \@initial_cc,
"chain-reply-to!" => \$chain_reply_to,
"smtp-server=s" => \$smtp_server,
"compose" => \$compose,
--to Specify the primary "To:" line of the email.
+ --cc Specify an initial "Cc:" list for the entire series
+ of emails.
+
--compose Use \$EDITOR to edit an introductory message for the
patch series.
foreach my $t (@files) {
open(F,"<",$t) or die "can't open file $t";
- @cc = ();
+ @cc = @initial_cc;
my $found_mbox = 0;
my $header_done = 0;
$message = "";