send-email: Add --cc
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>
Ryan Anderson committed
Feb 13, 2006 at 03:05 UTC
da140f8bbf0a84b567898332759895111c37444f
2 files changed
+9
-2
Documentation/git-send-email.txt
+3
@@ -24,6 +24,9 @@ OPTIONS
24
-------
25
The options available are:
26
27
+--cc::
28
+ Specify a starting "Cc:" value for each email.
29
+
30
--chain-reply-to, --no-chain-reply-to::
31
If this is set, each email will be sent as a reply to the previous
32
email sent. If disabled with "--no-chain-reply-to", all emails after
git-send-email.perl
+6
-2
@@ -31,7 +31,7 @@ sub cleanup_compose_files();
31
my $compose_filename = ".msg.$$";
32
33
# Variables we fill in automatically, or via prompting:
34
-my (@to,@cc,$initial_reply_to,$initial_subject,@files,$from,$compose);
34
+my (@to,@cc,@initial_cc,$initial_reply_to,$initial_subject,@files,$from,$compose);
35
36
# Behavior modification variables
37
my ($chain_reply_to, $smtp_server, $quiet, $suppress_from, $no_signed_off_cc) = (1, "localhost", 0, 0, 0);
@@ -48,6 +48,7 @@ my $rc = GetOptions("from=s" => \$from,
48
"in-reply-to=s" => \$initial_reply_to,
49
"subject=s" => \$initial_subject,
50
"to=s" => \@to,
51
+ "cc=s" => \@initial_cc,
52
"chain-reply-to!" => \$chain_reply_to,
53
"smtp-server=s" => \$smtp_server,
54
"compose" => \$compose,
@@ -199,6 +200,9 @@ Options:
200
201
--to Specify the primary "To:" line of the email.
202
203
+ --cc Specify an initial "Cc:" list for the entire series
204
+ of emails.
205
+
206
--compose Use \$EDITOR to edit an introductory message for the
207
patch series.
208
@@ -298,7 +302,7 @@ $subject = $initial_subject;
302
foreach my $t (@files) {
303
open(F,"<",$t) or die "can't open file $t";
304
301
- @cc = ();
305
+ @cc = @initial_cc;
306
my $found_mbox = 0;
307
my $header_done = 0;
308
$message = "";