summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 240c77c)
raw | patch | inline | side by side (parent: 240c77c)
author | Avi Kivity <avi@qumranet.com> | |
Sun, 11 Mar 2007 17:19:44 +0000 (19:19 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 12 Mar 2007 06:53:57 +0000 (23:53 -0700) |
Chain-reply-to is a personal perference, and is unlikely to change from
patchset to patchset. Similarly, bcc is likely to have the same values
every invocation is one likes to bcc oneself.
So, allow both to be set via configuration variables.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
patchset to patchset. Similarly, bcc is likely to have the same values
every invocation is one likes to bcc oneself.
So, allow both to be set via configuration variables.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-send-email.txt | patch | blob | history | |
git-send-email.perl | patch | blob | history |
index 367646efab2462f99f04c9a9a9e875a89e884406..9b3aabb6fe5590f41319298337e8f9ea6d9fff4e 100644 (file)
the first will be sent as replies to the first email sent. When using
this, it is recommended that the first file given be an overview of the
entire patch series.
- Default is --chain-reply-to
+ Default is the value of the 'sendemail.chainreplyto' configuration
+ value; if that is unspecified, default to --chain-reply-to.
--compose::
Use $EDITOR to edit an introductory message for the
Format of the file(s) specified in sendemail.aliasesfile. Must be
one of 'mutt', 'mailrc', 'pine', or 'gnus'.
+sendemail.bcc::
+ Email address (or alias) to always bcc.
+
+sendemail.chainreplyto::
+ Boolean value specifying the default to the '--chain_reply_to'
+ parameter.
+
sendemail.smtpserver::
Default smtp server to use.
diff --git a/git-send-email.perl b/git-send-email.perl
index a71a192e4d752b7d79493321df5f82fbdd682dc7..6989c0260fcafe29397c89cfcc61a8ef9a49d58e 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
$term = new FakeTerm "$@: going non-interactive";
}
+my $def_chain = $repo->config_boolean('sendemail.chainreplyto');
+if ($def_chain and $def_chain eq 'false') {
+ $chain_reply_to = 0;
+}
+
+@bcclist = $repo->config('sendemail.bcc');
+if (!@bcclist or !$bcclist[0]) {
+ @bcclist = ();
+}
+
# Begin by accumulating all the variables (defined above), that we will end up
# needing, first, from the command line: