Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
send-email: rename the @bcclist variable for consistency
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Thu, 9 May 2019 11:48:29 +0000
(13:48 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 13 May 2019 08:11:49 +0000
(17:11 +0900)
The "to" and "cc" variables are named @initial_{to,cc}, let's rename
this one to match them.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
c573572
)
diff --git
a/git-send-email.perl
b/git-send-email.perl
index 6d6dee6bcf95d9140be3bdc6057e5292009d4600..b6af001419e11a6293c13892166f6c2ce9286b05 100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-169,7
+169,7
@@
sub format_2822_time {
my $re_encoded_word = qr/=\?($re_token)\?($re_token)\?($re_encoded_text)\?=/;
# Variables we fill in automatically, or via prompting:
my $re_encoded_word = qr/=\?($re_token)\?($re_token)\?($re_encoded_text)\?=/;
# Variables we fill in automatically, or via prompting:
-my (@to,$no_to,@initial_to,@cc,$no_cc,@initial_cc,@
bcclist
,$no_bcc,@xh,
+my (@to,$no_to,@initial_to,@cc,$no_cc,@initial_cc,@
initial_bcc
,$no_bcc,@xh,
$initial_in_reply_to,$reply_to,$initial_subject,@files,
$author,$sender,$smtp_authpass,$annotate,$use_xmailer,$compose,$time);
$initial_in_reply_to,$reply_to,$initial_subject,@files,
$author,$sender,$smtp_authpass,$annotate,$use_xmailer,$compose,$time);
@@
-264,7
+264,7
@@
sub do_edit {
"cc" => \@initial_cc,
"cccmd" => \$cc_cmd,
"aliasfiletype" => \$aliasfiletype,
"cc" => \@initial_cc,
"cccmd" => \$cc_cmd,
"aliasfiletype" => \$aliasfiletype,
- "bcc" => \@
bcclist
,
+ "bcc" => \@
initial_bcc
,
"suppresscc" => \@suppress_cc,
"envelopesender" => \$envelope_sender,
"confirm" => \$confirm,
"suppresscc" => \@suppress_cc,
"envelopesender" => \$envelope_sender,
"confirm" => \$confirm,
@@
-374,7
+374,7
@@
sub read_config {
"no-to" => \$no_to,
"cc=s" => \@initial_cc,
"no-cc" => \$no_cc,
"no-to" => \$no_to,
"cc=s" => \@initial_cc,
"no-cc" => \$no_cc,
- "bcc=s" => \@
bcclist
,
+ "bcc=s" => \@
initial_bcc
,
"no-bcc" => \$no_bcc,
"chain-reply-to!" => \$chain_reply_to,
"no-chain-reply-to" => sub {$chain_reply_to = 0},
"no-bcc" => \$no_bcc,
"chain-reply-to!" => \$chain_reply_to,
"no-chain-reply-to" => sub {$chain_reply_to = 0},
@@
-922,7
+922,7
@@
sub expand_one_alias {
@initial_to = process_address_list(@initial_to);
@initial_cc = process_address_list(@initial_cc);
@initial_to = process_address_list(@initial_to);
@initial_cc = process_address_list(@initial_cc);
-@
bcclist = process_address_list(@bcclist
);
+@
initial_bcc = process_address_list(@initial_bcc
);
if ($thread && !defined $initial_in_reply_to && $prompting) {
$initial_in_reply_to = ask(
if ($thread && !defined $initial_in_reply_to && $prompting) {
$initial_in_reply_to = ask(
@@
-1345,7
+1345,7
@@
sub send_message {
}
@cc);
my $to = join (",\n\t", @recipients);
}
@cc);
my $to = join (",\n\t", @recipients);
- @recipients = unique_email_list(@recipients,@cc,@
bcclist
);
+ @recipients = unique_email_list(@recipients,@cc,@
initial_bcc
);
@recipients = (map { extract_valid_address_or_die($_) } @recipients);
my $date = format_2822_time($time++);
my $gitversion = '@@GIT_VERSION@@';
@recipients = (map { extract_valid_address_or_die($_) } @recipients);
my $date = format_2822_time($time++);
my $gitversion = '@@GIT_VERSION@@';