aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-03-11 19:19:44 +0200
committerJunio C Hamano <junkio@cox.net>2007-03-11 23:53:57 -0700
commit4a62d3f5b237fb9fab7df778ecf62906ff892065 (patch)
treeaf5cdb03a829acdb267195b92be43f0a809734c2 /git-send-email.perl
parent240c77c7146a58834cf7e425bde956b646c69024 (diff)
downloadgit-4a62d3f5b237fb9fab7df778ecf62906ff892065.tar.gz
git-4a62d3f5b237fb9fab7df778ecf62906ff892065.tar.xz
git-send-email: configurable bcc and chain-reply-to
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>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl10
1 files changed, 10 insertions, 0 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index a71a192e4..6989c0260 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -149,6 +149,16 @@ if ($@) {
$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: